]> git.mxchange.org Git - friendica-addons.git/blobdiff - dav/SabreDAV/tests/Sabre/CalDAV/Principal/CollectionTest.php
Initial Release of the calendar plugin
[friendica-addons.git] / dav / SabreDAV / tests / Sabre / CalDAV / Principal / CollectionTest.php
diff --git a/dav/SabreDAV/tests/Sabre/CalDAV/Principal/CollectionTest.php b/dav/SabreDAV/tests/Sabre/CalDAV/Principal/CollectionTest.php
new file mode 100644 (file)
index 0000000..0495df1
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+
+require_once 'Sabre/DAVACL/MockPrincipalBackend.php';
+
+class Sabre_CalDAV_Principal_CollectionTest extends PHPUnit_Framework_TestCase {
+
+    function testGetChildForPrincipal() {
+
+        $back = new Sabre_DAVACL_MockPrincipalBackend();
+        $col = new Sabre_CalDAV_Principal_Collection($back);
+        $r = $col->getChildForPrincipal(array(
+            'uri' => 'principals/admin',
+        ));
+        $this->assertInstanceOf('Sabre_CalDAV_Principal_User', $r);
+
+    }
+
+}