3 require_once 'Sabre/DAVACL/MockPrincipalBackend.php';
5 class Sabre_CalDAV_Principal_CollectionTest extends PHPUnit_Framework_TestCase {
7 function testGetChildForPrincipal() {
9 $back = new Sabre_DAVACL_MockPrincipalBackend();
10 $col = new Sabre_CalDAV_Principal_Collection($back);
11 $r = $col->getChildForPrincipal(array(
12 'uri' => 'principals/admin',
14 $this->assertInstanceOf('Sabre_CalDAV_Principal_User', $r);