aboutsummaryrefslogblamecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/CalDAV/Principal/CollectionTest.php
blob: 277de06643d3ab23e0cb4c29d7d28f85390c2dc2 (plain) (tree)
1
2
3
4
5
6
7
8

     

                        
                                 
 

                 



                                                        

                                                   
                                         
                                        
           
                                                                      
     
 
<?php

declare(strict_types=1);

namespace Sabre\CalDAV\Principal;

use Sabre\DAVACL;

class CollectionTest extends \PHPUnit\Framework\TestCase
{
    public function testGetChildForPrincipal()
    {
        $back = new DAVACL\PrincipalBackend\Mock();
        $col = new Collection($back);
        $r = $col->getChildForPrincipal([
            'uri' => 'principals/admin',
        ]);
        $this->assertInstanceOf('Sabre\\CalDAV\\Principal\\User', $r);
    }
}