mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-27 01:12:46 +00:00
20 lines
434 B
PHP
20 lines
434 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(array(
|
||
|
'uri' => 'principals/admin',
|
||
|
));
|
||
|
$this->assertInstanceOf('Sabre\\CalDAV\\Principal\\User', $r);
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|