9 $backend =
new PrincipalBackend\Mock();
13 $this->assertEquals(
'principals', $pc->getName());
22 $backend =
new PrincipalBackend\Mock();
25 $children = $pc->getChildren();
26 $this->assertTrue(is_array($children));
28 foreach ($children as $child) {
29 $this->assertTrue($child instanceof
IPrincipal);
40 $backend =
new PrincipalBackend\Mock();
42 $pc->disableListing =
true;
44 $children = $pc->getChildren();
50 $backend =
new PrincipalBackend\Mock();
52 $this->assertEquals(
'principals/user1', $pc->findByUri(
'mailto:user1.sabredav@sabredav.org'));
53 $this->assertNull($pc->findByUri(
'mailto:fake.user.sabredav@sabredav.org'));
54 $this->assertNull($pc->findByUri(
''));
testGetChildrenDisable()
testBasic Sabre
testGetChildren()
testBasic