1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?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([ 'uri' => 'principals/admin', ]); $this->assertInstanceOf('Sabre\\CalDAV\\Principal\\User', $r); } }