[Pkg-owncloud-commits] [php-sabredav] 05/30: Another unittest

David Prévot taffit at moszumanska.debian.org
Tue Jan 26 16:19:39 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabredav.

commit 05fe0a4af0697619fdfe606aaca83be1c5598f37
Author: Evert Pot <me at evertpot.com>
Date:   Fri Jan 8 16:55:41 2016 -0500

    Another unittest
---
 tests/Sabre/CalDAV/Schedule/PluginPropertiesTest.php | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/tests/Sabre/CalDAV/Schedule/PluginPropertiesTest.php b/tests/Sabre/CalDAV/Schedule/PluginPropertiesTest.php
index b274990..5e227ae 100644
--- a/tests/Sabre/CalDAV/Schedule/PluginPropertiesTest.php
+++ b/tests/Sabre/CalDAV/Schedule/PluginPropertiesTest.php
@@ -91,6 +91,21 @@ class PluginPropertiesTest extends \Sabre\DAVServerTest {
         $this->assertArrayHasKey('{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL', $props[0][404]);
 
     }
+    function testNoDefaultCalendar() {
+
+        foreach($this->caldavBackend->getCalendarsForUser('principals/user1') as $calendar) {
+            $this->caldavBackend->deleteCalendar($calendar['id']);
+        }
+        $props = $this->server->getPropertiesForPath('/principals/user1', [
+            '{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL',
+        ]);
+
+        $this->assertArrayHasKey(0, $props);
+        $this->assertArrayHasKey(404, $props[0]);
+
+        $this->assertArrayHasKey('{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL', $props[0][404]);
+
+    }
 
     /**
      * There are two properties for availability. The server should

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list