Definition at line 5 of file PrincipalCollectionTest.php.
◆ testBasic()
Sabre\DAVACL\PrincipalCollectionTest::testBasic |
( |
| ) |
|
Definition at line 7 of file PrincipalCollectionTest.php.
9 $backend =
new PrincipalBackend\Mock();
10 $pc =
new PrincipalCollection($backend);
11 $this->assertTrue($pc instanceof PrincipalCollection);
13 $this->assertEquals(
'principals', $pc->getName());
◆ testFindByUri()
Sabre\DAVACL\PrincipalCollectionTest::testFindByUri |
( |
| ) |
|
Definition at line 48 of file PrincipalCollectionTest.php.
50 $backend =
new PrincipalBackend\Mock();
51 $pc =
new PrincipalCollection($backend);
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(
''));
◆ testGetChildren()
Sabre\DAVACL\PrincipalCollectionTest::testGetChildren |
( |
| ) |
|
testBasic
Definition at line 20 of file PrincipalCollectionTest.php.
22 $backend =
new PrincipalBackend\Mock();
23 $pc =
new PrincipalCollection($backend);
25 $children = $pc->getChildren();
26 $this->assertTrue(is_array($children));
28 foreach ($children as $child) {
29 $this->assertTrue($child instanceof IPrincipal);
◆ testGetChildrenDisable()
Sabre\DAVACL\PrincipalCollectionTest::testGetChildrenDisable |
( |
| ) |
|
testBasic Sabre
Definition at line 38 of file PrincipalCollectionTest.php.
40 $backend =
new PrincipalBackend\Mock();
41 $pc =
new PrincipalCollection($backend);
42 $pc->disableListing =
true;
44 $children = $pc->getChildren();
The documentation for this class was generated from the following file: