aboutsummaryrefslogblamecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/CalDAV/Principal/CollectionTest.php
blob: 23c2488257fff0292b79eedd6ee1902e6195fa41 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


                                 
 







                                                          
                                         
                                        
           




                                                                      
<?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([
            'uri' => 'principals/admin',
        ]);
        $this->assertInstanceOf('Sabre\\CalDAV\\Principal\\User', $r);

    }

}