1<?php
2
3namespace Sabre\CalDAV\Principal;
4use Sabre\DAVACL;
5
6class CollectionTest extends \PHPUnit_Framework_TestCase {
7
8    function testGetChildForPrincipal() {
9
10        $back = new DAVACL\PrincipalBackend\Mock();
11        $col = new Collection($back);
12        $r = $col->getChildForPrincipal(array(
13            'uri' => 'principals/admin',
14        ));
15        $this->assertInstanceOf('Sabre\\CalDAV\\Principal\\User', $r);
16
17    }
18
19}
20