]> git.mxchange.org Git - friendica-addons.git/blob - dav/SabreDAV/tests/Sabre/CalDAV/Principal/CollectionTest.php
0495df102cbbfebca0860c1c0d10ab58eff617ea
[friendica-addons.git] / dav / SabreDAV / tests / Sabre / CalDAV / Principal / CollectionTest.php
1 <?php
2
3 require_once 'Sabre/DAVACL/MockPrincipalBackend.php';
4
5 class Sabre_CalDAV_Principal_CollectionTest extends PHPUnit_Framework_TestCase {
6
7     function testGetChildForPrincipal() {
8
9         $back = new Sabre_DAVACL_MockPrincipalBackend();
10         $col = new Sabre_CalDAV_Principal_Collection($back);
11         $r = $col->getChildForPrincipal(array(
12             'uri' => 'principals/admin',
13         ));
14         $this->assertInstanceOf('Sabre_CalDAV_Principal_User', $r);
15
16     }
17
18 }