Blame view

sources/3rdparty/sabre/dav/tests/Sabre/CalDAV/Principal/CollectionTest.php 434 Bytes
6d9380f96   Cédric Dupont   Update sources OC...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  <?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(array(
              'uri' => 'principals/admin',
          ));
          $this->assertInstanceOf('Sabre\\CalDAV\\Principal\\User', $r);
  
      }
  
  }