mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-24 00:23:55 +00:00
19 lines
483 B
PHP
19 lines
483 B
PHP
|
<?php
|
||
|
|
||
|
require_once 'Sabre/DAVACL/MockPrincipalBackend.php';
|
||
|
|
||
|
class Sabre_CalDAV_Principal_CollectionTest extends PHPUnit_Framework_TestCase {
|
||
|
|
||
|
function testGetChildForPrincipal() {
|
||
|
|
||
|
$back = new Sabre_DAVACL_MockPrincipalBackend();
|
||
|
$col = new Sabre_CalDAV_Principal_Collection($back);
|
||
|
$r = $col->getChildForPrincipal(array(
|
||
|
'uri' => 'principals/admin',
|
||
|
));
|
||
|
$this->assertInstanceOf('Sabre_CalDAV_Principal_User', $r);
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|