Definition at line 8 of file PrincipalTest.php.
◆ testConstruct()
Sabre\DAVACL\PrincipalTest::testConstruct |
( |
| ) |
|
◆ testConstructNoUri()
Sabre\DAVACL\PrincipalTest::testConstructNoUri |
( |
| ) |
|
◆ testGetACl()
Sabre\DAVACL\PrincipalTest::testGetACl |
( |
| ) |
|
Definition at line 175 of file PrincipalTest.php.
References $principalBackend.
179 $this->assertEquals([
181 'privilege' =>
'{DAV:}all',
182 'principal' =>
'{DAV:}owner',
185 ], $principal->getACL());
◆ testGetAlternateUriSet()
Sabre\DAVACL\PrincipalTest::testGetAlternateUriSet |
( |
| ) |
|
Definition at line 95 of file PrincipalTest.php.
References $principalBackend.
99 'uri' =>
'principals/admin',
100 '{DAV:}displayname' =>
'Mr. Admin',
101 '{http://www.example.org/custom}custom' =>
'Custom',
102 '{http://sabredav.org/ns}email-address' =>
'admin@example.org',
103 '{DAV:}alternate-URI-set' => [
104 'mailto:admin+1@example.org',
105 'mailto:admin+2@example.org',
106 'mailto:admin@example.org',
111 'mailto:admin+1@example.org',
112 'mailto:admin+2@example.org',
113 'mailto:admin@example.org',
116 $this->assertEquals($expected, $principal->getAlternateUriSet());
◆ testGetAlternateUriSetEmpty()
Sabre\DAVACL\PrincipalTest::testGetAlternateUriSetEmpty |
( |
| ) |
|
◆ testGetDisplayName()
Sabre\DAVACL\PrincipalTest::testGetDisplayName |
( |
| ) |
|
Definition at line 36 of file PrincipalTest.php.
References $principalBackend.
40 $this->assertEquals(
'admin', $principal->getDisplayname());
43 'uri' =>
'principals/admin',
44 '{DAV:}displayname' =>
'Mr. Admin' 46 $this->assertEquals(
'Mr. Admin', $principal->getDisplayname());
◆ testGetGroup()
Sabre\DAVACL\PrincipalTest::testGetGroup |
( |
| ) |
|
◆ testGetGroupMemberSet()
Sabre\DAVACL\PrincipalTest::testGetGroupMemberSet |
( |
| ) |
|
◆ testGetGroupMembership()
Sabre\DAVACL\PrincipalTest::testGetGroupMembership |
( |
| ) |
|
◆ testGetName()
Sabre\DAVACL\PrincipalTest::testGetName |
( |
| ) |
|
◆ testGetOwner()
Sabre\DAVACL\PrincipalTest::testGetOwner |
( |
| ) |
|
◆ testGetPrincipalUrl()
Sabre\DAVACL\PrincipalTest::testGetPrincipalUrl |
( |
| ) |
|
◆ testGetProperties()
Sabre\DAVACL\PrincipalTest::testGetProperties |
( |
| ) |
|
Definition at line 50 of file PrincipalTest.php.
References $key, $keys, and $principalBackend.
54 'uri' =>
'principals/admin',
55 '{DAV:}displayname' =>
'Mr. Admin',
56 '{http://www.example.org/custom}custom' =>
'Custom',
57 '{http://sabredav.org/ns}email-address' =>
'admin@example.org',
62 '{http://www.example.org/custom}custom',
63 '{http://sabredav.org/ns}email-address',
65 $props = $principal->getProperties(
$keys);
67 foreach (
$keys as
$key) $this->assertArrayHasKey($key, $props);
69 $this->assertEquals(
'Mr. Admin', $props[
'{DAV:}displayname']);
71 $this->assertEquals(
'admin@example.org', $props[
'{http://sabredav.org/ns}email-address']);
◆ testGetSupportedPrivilegeSet()
Sabre\DAVACL\PrincipalTest::testGetSupportedPrivilegeSet |
( |
| ) |
|
◆ testSetACl()
Sabre\DAVACL\PrincipalTest::testSetACl |
( |
| ) |
|
◆ testSetGroupMemberSet()
Sabre\DAVACL\PrincipalTest::testSetGroupMemberSet |
( |
| ) |
|
Definition at line 147 of file PrincipalTest.php.
References $principalBackend.
151 $principal->setGroupMemberSet([
'principals/foo']);
153 $this->assertEquals([
154 'principals/admin' => [
'principals/foo'],
◆ testUpdateProperties()
Sabre\DAVACL\PrincipalTest::testUpdateProperties |
( |
| ) |
|
The documentation for this class was generated from the following file: