Esempio n. 1
0
 function testACLMethods()
 {
     $this->assertEquals('principals/user1', $this->ab->getOwner());
     $this->assertNull($this->ab->getGroup());
     $this->assertEquals(array(array('privilege' => '{DAV:}read', 'principal' => 'principals/user1', 'protected' => true), array('privilege' => '{DAV:}write', 'principal' => 'principals/user1', 'protected' => true)), $this->ab->getACL());
 }
Esempio n. 2
0
 function testACLMethods()
 {
     $this->assertEquals('principals/user1', $this->ab->getOwner());
     $this->assertNull($this->ab->getGroup());
     $this->assertEquals([['privilege' => '{DAV:}all', 'principal' => '{DAV:}owner', 'protected' => true]], $this->ab->getACL());
 }