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