streams/vendor/sabre/dav/tests/Sabre/CalDAV/Principal/CollectionTest.php

21 lines
430 B
PHP
Raw Normal View History

<?php
namespace Sabre\CalDAV\Principal;
2016-05-28 15:46:24 +00:00
use Sabre\DAVACL;
class CollectionTest extends \PHPUnit_Framework_TestCase {
function testGetChildForPrincipal() {
$back = new DAVACL\PrincipalBackend\Mock();
$col = new Collection($back);
2016-05-28 15:46:24 +00:00
$r = $col->getChildForPrincipal([
'uri' => 'principals/admin',
2016-05-28 15:46:24 +00:00
]);
$this->assertInstanceOf('Sabre\\CalDAV\\Principal\\User', $r);
}
}