mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-26 23:12:47 +00:00
19 lines
434 B
PHP
19 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);
|
|
|
|
}
|
|
|
|
}
|