function testACLMethods()
 {
     $this->assertEquals('principals/user1', $this->s->getOwner());
     $this->assertNull($this->s->getGroup());
     $this->assertEquals([['privilege' => '{DAV:}all', 'principal' => '{DAV:}owner', 'protected' => true]], $this->s->getACL());
 }
Пример #2
0
 function testACLMethods()
 {
     $this->assertEquals('principals/user1', $this->s->getOwner());
     $this->assertNull($this->s->getGroup());
     $this->assertEquals(array(array('privilege' => '{DAV:}read', 'principal' => 'principals/user1', 'protected' => true), array('privilege' => '{DAV:}write', 'principal' => 'principals/user1', 'protected' => true)), $this->s->getACL());
 }