ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\VObject\ITip\BrokerProcessMessageTest Class Reference
+ Inheritance diagram for Sabre\VObject\ITip\BrokerProcessMessageTest:
+ Collaboration diagram for Sabre\VObject\ITip\BrokerProcessMessageTest:

Public Member Functions

 testRequestNew ()
 
 testRequestUpdate ()
 
 testCancel ()
 
 testCancelNoExistingEvent ()
 
 testUnsupportedComponent ()
 
 testUnsupportedMethod ()
 
- Public Member Functions inherited from Sabre\VObject\ITip\BrokerTester
 parse ($oldMessage, $newMessage, $expected=[], $currentUser='mailto:one @example.org')
 
 process ($input, $existingObject=null, $expected=false)
 

Detailed Description

Definition at line 5 of file BrokerProcessMessageTest.php.

Member Function Documentation

◆ testCancel()

Sabre\VObject\ITip\BrokerProcessMessageTest::testCancel ( )

Definition at line 69 of file BrokerProcessMessageTest.php.

References $result, and Sabre\VObject\ITip\BrokerTester\process().

69  {
70 
71  $itip = <<<ICS
72 BEGIN:VCALENDAR
73 VERSION:2.0
74 METHOD:CANCEL
75 BEGIN:VEVENT
76 SEQUENCE:2
77 UID:foobar
78 END:VEVENT
79 END:VCALENDAR
80 ICS;
81 
82  $old = <<<ICS
83 BEGIN:VCALENDAR
84 BEGIN:VEVENT
85 SEQUENCE:1
86 UID:foobar
87 END:VEVENT
88 END:VCALENDAR
89 ICS;
90 
91  $expected = <<<ICS
92 BEGIN:VCALENDAR
93 BEGIN:VEVENT
94 UID:foobar
95 STATUS:CANCELLED
96 SEQUENCE:2
97 END:VEVENT
98 END:VCALENDAR
99 ICS;
100 
101  $result = $this->process($itip, $old, $expected);
102 
103  }
$result
process($input, $existingObject=null, $expected=false)
+ Here is the call graph for this function:

◆ testCancelNoExistingEvent()

Sabre\VObject\ITip\BrokerProcessMessageTest::testCancelNoExistingEvent ( )

Definition at line 105 of file BrokerProcessMessageTest.php.

References $result, and Sabre\VObject\ITip\BrokerTester\process().

105  {
106 
107  $itip = <<<ICS
108 BEGIN:VCALENDAR
109 VERSION:2.0
110 METHOD:CANCEL
111 BEGIN:VEVENT
112 SEQUENCE:2
113 UID:foobar
114 END:VEVENT
115 END:VCALENDAR
116 ICS;
117 
118  $old = null;
119  $expected = null;
120 
121  $result = $this->process($itip, $old, $expected);
122 
123  }
$result
process($input, $existingObject=null, $expected=false)
+ Here is the call graph for this function:

◆ testRequestNew()

Sabre\VObject\ITip\BrokerProcessMessageTest::testRequestNew ( )

Definition at line 7 of file BrokerProcessMessageTest.php.

References $result, and Sabre\VObject\ITip\BrokerTester\process().

7  {
8 
9  $itip = <<<ICS
10 BEGIN:VCALENDAR
11 VERSION:2.0
12 METHOD:REQUEST
13 BEGIN:VEVENT
14 SEQUENCE:1
15 UID:foobar
16 END:VEVENT
17 END:VCALENDAR
18 ICS;
19 
20  $expected = <<<ICS
21 BEGIN:VCALENDAR
22 VERSION:2.0
23 BEGIN:VEVENT
24 SEQUENCE:1
25 UID:foobar
26 END:VEVENT
27 END:VCALENDAR
28 ICS;
29 
30  $result = $this->process($itip, null, $expected);
31 
32  }
$result
process($input, $existingObject=null, $expected=false)
+ Here is the call graph for this function:

◆ testRequestUpdate()

Sabre\VObject\ITip\BrokerProcessMessageTest::testRequestUpdate ( )

Definition at line 34 of file BrokerProcessMessageTest.php.

References $result, and Sabre\VObject\ITip\BrokerTester\process().

34  {
35 
36  $itip = <<<ICS
37 BEGIN:VCALENDAR
38 VERSION:2.0
39 METHOD:REQUEST
40 BEGIN:VEVENT
41 SEQUENCE:2
42 UID:foobar
43 END:VEVENT
44 END:VCALENDAR
45 ICS;
46 
47  $old = <<<ICS
48 BEGIN:VCALENDAR
49 BEGIN:VEVENT
50 SEQUENCE:1
51 UID:foobar
52 END:VEVENT
53 END:VCALENDAR
54 ICS;
55 
56  $expected = <<<ICS
57 BEGIN:VCALENDAR
58 BEGIN:VEVENT
59 SEQUENCE:2
60 UID:foobar
61 END:VEVENT
62 END:VCALENDAR
63 ICS;
64 
65  $result = $this->process($itip, $old, $expected);
66 
67  }
$result
process($input, $existingObject=null, $expected=false)
+ Here is the call graph for this function:

◆ testUnsupportedComponent()

Sabre\VObject\ITip\BrokerProcessMessageTest::testUnsupportedComponent ( )

Definition at line 125 of file BrokerProcessMessageTest.php.

References $result, and Sabre\VObject\ITip\BrokerTester\process().

125  {
126 
127  $itip = <<<ICS
128 BEGIN:VCALENDAR
129 VERSION:2.0
130 BEGIN:VTODO
131 SEQUENCE:2
132 UID:foobar
133 END:VTODO
134 END:VCALENDAR
135 ICS;
136 
137  $old = null;
138  $expected = null;
139 
140  $result = $this->process($itip, $old, $expected);
141 
142  }
$result
process($input, $existingObject=null, $expected=false)
+ Here is the call graph for this function:

◆ testUnsupportedMethod()

Sabre\VObject\ITip\BrokerProcessMessageTest::testUnsupportedMethod ( )

Definition at line 144 of file BrokerProcessMessageTest.php.

References $result, and Sabre\VObject\ITip\BrokerTester\process().

144  {
145 
146  $itip = <<<ICS
147 BEGIN:VCALENDAR
148 VERSION:2.0
149 METHOD:PUBLISH
150 BEGIN:VEVENT
151 SEQUENCE:2
152 UID:foobar
153 END:VEVENT
154 END:VCALENDAR
155 ICS;
156 
157  $old = null;
158  $expected = null;
159 
160  $result = $this->process($itip, $old, $expected);
161 
162  }
$result
process($input, $existingObject=null, $expected=false)
+ Here is the call graph for this function:

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