annotate vendor/sabre/vobject/tests/VObject/ITip/BrokerProcessReplyTest.php @ 7:430dbd5346f7

vendor sabre as distributed
author Charlie Root
date Sat, 13 Jan 2018 09:06:10 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
1 <?php
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
3 namespace Sabre\VObject\ITip;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
4
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
5 class BrokerProcessReplyTest extends BrokerTester {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
6
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
7 function testReplyNoOriginal() {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
8
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
9 $itip = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
10 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
11 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
12 METHOD:REPLY
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
13 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
14 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
15 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
16 ATTENDEE;PARTSTAT=ACCEPTED:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
17 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
18 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
19 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
20 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
21
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
22 $old = null;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
23 $expected = null;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
24
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
25 $result = $this->process($itip, $old, $expected);
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
26
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
27 }
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
28
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
29 function testReplyAccept() {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
30
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
31 $itip = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
32 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
33 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
34 METHOD:REPLY
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
35 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
36 ATTENDEE;PARTSTAT=ACCEPTED:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
37 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
38 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
39 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
40 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
41 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
42 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
43
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
44 $old = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
45 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
46 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
47 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
48 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
49 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
50 ATTENDEE:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
51 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
52 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
53 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
54 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
55
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
56 $expected = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
57 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
58 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
59 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
60 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
61 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
62 ATTENDEE;PARTSTAT=ACCEPTED;SCHEDULE-STATUS=2.0:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
63 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
64 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
65 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
66 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
67
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
68 $result = $this->process($itip, $old, $expected);
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
69
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
70 }
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
71
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
72 function testReplyRequestStatus() {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
73
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
74 $itip = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
75 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
76 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
77 METHOD:REPLY
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
78 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
79 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
80 REQUEST-STATUS:2.3;foo-bar!
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
81 ATTENDEE;PARTSTAT=ACCEPTED:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
82 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
83 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
84 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
85 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
86 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
87 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
88
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
89 $old = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
90 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
91 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
92 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
93 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
94 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
95 ATTENDEE:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
96 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
97 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
98 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
99 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
100
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
101 $expected = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
102 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
103 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
104 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
105 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
106 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
107 ATTENDEE;PARTSTAT=ACCEPTED;SCHEDULE-STATUS=2.3:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
108 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
109 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
110 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
111 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
112
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
113 $result = $this->process($itip, $old, $expected);
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
114
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
115 }
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
116
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
117
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
118 function testReplyPartyCrasher() {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
119
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
120 $itip = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
121 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
122 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
123 METHOD:REPLY
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
124 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
125 ATTENDEE;PARTSTAT=ACCEPTED:mailto:crasher@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
126 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
127 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
128 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
129 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
130 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
131 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
132
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
133 $old = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
134 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
135 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
136 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
137 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
138 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
139 ATTENDEE:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
140 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
141 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
142 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
143 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
144
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
145 $expected = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
146 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
147 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
148 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
149 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
150 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
151 ATTENDEE:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
152 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
153 ATTENDEE;PARTSTAT=ACCEPTED:mailto:crasher@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
154 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
155 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
156 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
157
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
158 $result = $this->process($itip, $old, $expected);
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
159
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
160 }
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
161
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
162 function testReplyNewException() {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
163
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
164 // This is a reply to 1 instance of a recurring event. This should
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
165 // automatically create an exception.
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
166 $itip = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
167 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
168 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
169 METHOD:REPLY
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
170 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
171 ATTENDEE;PARTSTAT=ACCEPTED:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
172 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
173 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
174 RECURRENCE-ID:20140725T000000Z
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
175 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
176 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
177 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
178 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
179
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
180 $old = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
181 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
182 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
183 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
184 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
185 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
186 RRULE:FREQ=DAILY
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
187 DTSTART:20140724T000000Z
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
188 ATTENDEE:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
189 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
190 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
191 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
192 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
193
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
194 $expected = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
195 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
196 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
197 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
198 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
199 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
200 RRULE:FREQ=DAILY
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
201 DTSTART:20140724T000000Z
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
202 ATTENDEE:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
203 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
204 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
205 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
206 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
207 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
208 DTSTART:20140725T000000Z
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
209 ATTENDEE;PARTSTAT=ACCEPTED:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
210 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
211 RECURRENCE-ID:20140725T000000Z
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
212 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
213 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
214 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
215
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
216 $result = $this->process($itip, $old, $expected);
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
217
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
218 }
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
219
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
220 function testReplyNewExceptionTz() {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
221
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
222 // This is a reply to 1 instance of a recurring event. This should
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
223 // automatically create an exception.
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
224 $itip = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
225 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
226 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
227 METHOD:REPLY
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
228 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
229 ATTENDEE;PARTSTAT=ACCEPTED:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
230 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
231 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
232 RECURRENCE-ID;TZID=America/Toronto:20140725T000000
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
233 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
234 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
235 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
236 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
237
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
238 $old = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
239 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
240 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
241 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
242 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
243 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
244 RRULE:FREQ=DAILY
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
245 DTSTART;TZID=America/Toronto:20140724T000000
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
246 ATTENDEE:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
247 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
248 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
249 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
250 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
251
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
252 $expected = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
253 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
254 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
255 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
256 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
257 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
258 RRULE:FREQ=DAILY
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
259 DTSTART;TZID=America/Toronto:20140724T000000
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
260 ATTENDEE:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
261 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
262 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
263 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
264 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
265 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
266 DTSTART;TZID=America/Toronto:20140725T000000
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
267 ATTENDEE;PARTSTAT=ACCEPTED:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
268 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
269 RECURRENCE-ID;TZID=America/Toronto:20140725T000000
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
270 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
271 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
272 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
273
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
274 $result = $this->process($itip, $old, $expected);
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
275
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
276 }
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
277
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
278 function testReplyPartyCrashCreateExcepton() {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
279
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
280 // IN this test there's a recurring event that has an exception. The
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
281 // exception is missing the attendee.
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
282 //
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
283 // The attendee party crashes the instance, so it should show up in the
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
284 // resulting object.
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
285 $itip = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
286 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
287 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
288 METHOD:REPLY
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
289 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
290 ATTENDEE;PARTSTAT=ACCEPTED;CN=Crasher!:mailto:crasher@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
291 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
292 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
293 RECURRENCE-ID:20140725T000000Z
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
294 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
295 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
296 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
297 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
298
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
299 $old = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
300 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
301 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
302 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
303 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
304 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
305 RRULE:FREQ=DAILY
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
306 DTSTART:20140724T000000Z
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
307 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
308 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
309 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
310 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
311
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
312 $expected = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
313 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
314 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
315 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
316 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
317 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
318 RRULE:FREQ=DAILY
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
319 DTSTART:20140724T000000Z
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
320 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
321 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
322 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
323 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
324 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
325 DTSTART:20140725T000000Z
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
326 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
327 RECURRENCE-ID:20140725T000000Z
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
328 ATTENDEE;PARTSTAT=ACCEPTED;CN=Crasher!:mailto:crasher@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
329 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
330 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
331 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
332
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
333 $result = $this->process($itip, $old, $expected);
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
334
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
335 }
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
336
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
337 function testReplyNewExceptionNoMasterEvent() {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
338
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
339 /**
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
340 * This iTip message would normally create a new exception, but the
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
341 * server is not able to create this new instance, because there's no
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
342 * master event to clone from.
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
343 *
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
344 * This test checks if the message is ignored.
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
345 */
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
346 $itip = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
347 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
348 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
349 METHOD:REPLY
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
350 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
351 ATTENDEE;PARTSTAT=ACCEPTED;CN=Crasher!:mailto:crasher@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
352 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
353 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
354 RECURRENCE-ID:20140725T000000Z
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
355 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
356 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
357 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
358 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
359
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
360 $old = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
361 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
362 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
363 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
364 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
365 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
366 RRULE:FREQ=DAILY
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
367 DTSTART:20140724T000000Z
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
368 RECURRENCE-ID:20140724T000000Z
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
369 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
370 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
371 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
372 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
373
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
374 $expected = null;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
375 $result = $this->process($itip, $old, $expected);
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
376
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
377 }
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
378
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
379 /**
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
380 * @depends testReplyAccept
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
381 */
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
382 function testReplyAcceptUpdateRSVP() {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
383
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
384 $itip = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
385 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
386 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
387 METHOD:REPLY
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
388 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
389 ATTENDEE;PARTSTAT=ACCEPTED:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
390 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
391 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
392 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
393 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
394 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
395 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
396
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
397 $old = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
398 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
399 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
400 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
401 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
402 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
403 ATTENDEE;RSVP=TRUE:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
404 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
405 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
406 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
407 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
408
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
409 $expected = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
410 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
411 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
412 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
413 SEQUENCE:2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
414 UID:foobar
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
415 ATTENDEE;PARTSTAT=ACCEPTED;SCHEDULE-STATUS=2.0:mailto:foo@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
416 ORGANIZER:mailto:bar@example.org
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
417 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
418 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
419 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
420
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
421 $result = $this->process($itip, $old, $expected);
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
422
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
423 }
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
424
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
425 }