blob: 277de06643d3ab23e0cb4c29d7d28f85390c2dc2 (
plain) (
tree)
|
|
<?php
declare(strict_types=1);
namespace Sabre\CalDAV\Principal;
use Sabre\DAVACL;
class CollectionTest extends \PHPUnit\Framework\TestCase
{
public function testGetChildForPrincipal()
{
$back = new DAVACL\PrincipalBackend\Mock();
$col = new Collection($back);
$r = $col->getChildForPrincipal([
'uri' => 'principals/admin',
]);
$this->assertInstanceOf('Sabre\\CalDAV\\Principal\\User', $r);
}
}
|