ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\CalDAV\Principal\ProxyReadTest Class Reference
+ Inheritance diagram for Sabre\CalDAV\Principal\ProxyReadTest:
+ Collaboration diagram for Sabre\CalDAV\Principal\ProxyReadTest:

Public Member Functions

 getInstance ()
 
 testGetName ()
 
 testGetDisplayName ()
 
 testGetLastModified ()
 
 testDelete ()
 @expectedException Sabre\DAV\Exception\Forbidden More...
 
 testSetName ()
 @expectedException Sabre\DAV\Exception\Forbidden More...
 
 testGetAlternateUriSet ()
 
 testGetPrincipalUri ()
 
 testGetGroupMemberSet ()
 
 testGetGroupMembership ()
 
 testSetGroupMemberSet ()
 

Protected Attributes

 $backend
 

Detailed Description

Definition at line 7 of file ProxyReadTest.php.

Member Function Documentation

◆ getInstance()

◆ testDelete()

Sabre\CalDAV\Principal\ProxyReadTest::testDelete ( )

@expectedException Sabre\DAV\Exception\Forbidden

Definition at line 45 of file ProxyReadTest.php.

45 {
46
47 $i = $this->getInstance();
48 $i->delete();
49
50 }
$i
Definition: disco.tpl.php:19

References $i, and Sabre\CalDAV\Principal\ProxyReadTest\getInstance().

+ Here is the call graph for this function:

◆ testGetAlternateUriSet()

Sabre\CalDAV\Principal\ProxyReadTest::testGetAlternateUriSet ( )

Definition at line 62 of file ProxyReadTest.php.

62 {
63
64 $i = $this->getInstance();
65 $this->assertEquals([], $i->getAlternateUriSet());
66
67 }

References $i, and Sabre\CalDAV\Principal\ProxyReadTest\getInstance().

+ Here is the call graph for this function:

◆ testGetDisplayName()

Sabre\CalDAV\Principal\ProxyReadTest::testGetDisplayName ( )

Reimplemented in Sabre\CalDAV\Principal\ProxyWriteTest.

Definition at line 28 of file ProxyReadTest.php.

28 {
29
30 $i = $this->getInstance();
31 $this->assertEquals('calendar-proxy-read', $i->getDisplayName());
32
33 }

References $i, and Sabre\CalDAV\Principal\ProxyReadTest\getInstance().

+ Here is the call graph for this function:

◆ testGetGroupMemberSet()

Sabre\CalDAV\Principal\ProxyReadTest::testGetGroupMemberSet ( )

Definition at line 76 of file ProxyReadTest.php.

76 {
77
78 $i = $this->getInstance();
79 $this->assertEquals([], $i->getGroupMemberSet());
80
81 }

References $i, and Sabre\CalDAV\Principal\ProxyReadTest\getInstance().

+ Here is the call graph for this function:

◆ testGetGroupMembership()

Sabre\CalDAV\Principal\ProxyReadTest::testGetGroupMembership ( )

Definition at line 83 of file ProxyReadTest.php.

83 {
84
85 $i = $this->getInstance();
86 $this->assertEquals([], $i->getGroupMembership());
87
88 }

References $i, and Sabre\CalDAV\Principal\ProxyReadTest\getInstance().

+ Here is the call graph for this function:

◆ testGetLastModified()

Sabre\CalDAV\Principal\ProxyReadTest::testGetLastModified ( )

Definition at line 35 of file ProxyReadTest.php.

35 {
36
37 $i = $this->getInstance();
38 $this->assertNull($i->getLastModified());
39
40 }

References $i, and Sabre\CalDAV\Principal\ProxyReadTest\getInstance().

+ Here is the call graph for this function:

◆ testGetName()

Sabre\CalDAV\Principal\ProxyReadTest::testGetName ( )

Reimplemented in Sabre\CalDAV\Principal\ProxyWriteTest.

Definition at line 22 of file ProxyReadTest.php.

22 {
23
24 $i = $this->getInstance();
25 $this->assertEquals('calendar-proxy-read', $i->getName());
26
27 }

References $i, and Sabre\CalDAV\Principal\ProxyReadTest\getInstance().

+ Here is the call graph for this function:

◆ testGetPrincipalUri()

Sabre\CalDAV\Principal\ProxyReadTest::testGetPrincipalUri ( )

Reimplemented in Sabre\CalDAV\Principal\ProxyWriteTest.

Definition at line 69 of file ProxyReadTest.php.

69 {
70
71 $i = $this->getInstance();
72 $this->assertEquals('principal/user/calendar-proxy-read', $i->getPrincipalUrl());
73
74 }

References $i, and Sabre\CalDAV\Principal\ProxyReadTest\getInstance().

+ Here is the call graph for this function:

◆ testSetGroupMemberSet()

Sabre\CalDAV\Principal\ProxyReadTest::testSetGroupMemberSet ( )

Definition at line 90 of file ProxyReadTest.php.

90 {
91
92 $i = $this->getInstance();
93 $i->setGroupMemberSet(['principals/foo']);
94
95 $expected = [
96 $i->getPrincipalUrl() => ['principals/foo']
97 ];
98
99 $this->assertEquals($expected, $this->backend->groupMembers);
100
101 }

References $i, and Sabre\CalDAV\Principal\ProxyReadTest\getInstance().

+ Here is the call graph for this function:

◆ testSetName()

Sabre\CalDAV\Principal\ProxyReadTest::testSetName ( )

@expectedException Sabre\DAV\Exception\Forbidden

Definition at line 55 of file ProxyReadTest.php.

55 {
56
57 $i = $this->getInstance();
58 $i->setName('foo');
59
60 }

References $i, and Sabre\CalDAV\Principal\ProxyReadTest\getInstance().

+ Here is the call graph for this function:

Field Documentation

◆ $backend

Sabre\CalDAV\Principal\ProxyReadTest::$backend
protected

The documentation for this class was generated from the following file: