streams/vendor/sabre/dav/tests/Sabre/CalDAV/Principal/CollectionTest.php
2016-05-28 17:46:24 +02:00

20 lines
430 B
PHP

<?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);
}
}