blob: 625f642119d35918934bc8eb4dda85e3addd30a7 (
plain) (
tree)
|
|
<?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);
}
}
|