diff options
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre/CalDAV/Principal/CollectionTest.php')
-rw-r--r-- | vendor/sabre/dav/tests/Sabre/CalDAV/Principal/CollectionTest.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/CalDAV/Principal/CollectionTest.php b/vendor/sabre/dav/tests/Sabre/CalDAV/Principal/CollectionTest.php new file mode 100644 index 000000000..625f64211 --- /dev/null +++ b/vendor/sabre/dav/tests/Sabre/CalDAV/Principal/CollectionTest.php @@ -0,0 +1,19 @@ +<?php + +namespace Sabre\CalDAV\Principal; +use Sabre\DAVACL; + +class CollectionTest extends \PHPUnit_Framework_TestCase { + + function testGetChildForPrincipal() { + + $back = new DAVACL\PrincipalBackend\Mock(); + $col = new Collection($back); + $r = $col->getChildForPrincipal(array( + 'uri' => 'principals/admin', + )); + $this->assertInstanceOf('Sabre\\CalDAV\\Principal\\User', $r); + + } + +} |