コード例 #1
0
ファイル: AddressBookTest.php プロジェクト: samj1912/repo
 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());
 }
コード例 #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());
 }