Skip to content

Commit 5b86533

Browse files
DeepDiver1975staabm
authored andcommitted
Add unit test for #433
1 parent eeafeae commit 5b86533

File tree

2 files changed

+48
-2
lines changed

2 files changed

+48
-2
lines changed

tests/VObject/ITip/BrokerNewEventTest.php

+47-1
Original file line numberDiff line numberDiff line change
@@ -508,10 +508,56 @@ public function testChangingOrganizers()
508508
END:VCALENDAR
509509
ICS;
510510

511-
$version = \Sabre\VObject\Version::VERSION;
512511
$this->parse(null, $message, [], 'mailto:[email protected]');
513512
}
514513

514+
public function testCaseInsensitiveOrganizers()
515+
{
516+
$message = <<<ICS
517+
BEGIN:VCALENDAR
518+
VERSION:2.0
519+
BEGIN:VEVENT
520+
UID:foobar
521+
ORGANIZER;CN=Strunk:mailto:[email protected]
522+
ATTENDEE;CN=One:mailto:[email protected]
523+
ATTENDEE;CN=Two:mailto:[email protected]
524+
DTSTART:20140716T120000Z
525+
DTEND:20140716T130000Z
526+
RRULE:FREQ=DAILY
527+
END:VEVENT
528+
BEGIN:VEVENT
529+
UID:foobar
530+
RECURRENCE-ID:20140718T120000Z
531+
ORGANIZER;CN=Strunk:mailto:[email protected]
532+
ATTENDEE;CN=Two:mailto:[email protected]
533+
ATTENDEE;CN=Three:mailto:[email protected]
534+
DTSTART:20140718T120000Z
535+
DTEND:20140718T130000Z
536+
END:VEVENT
537+
END:VCALENDAR
538+
ICS;
539+
540+
$this->parse(null, $message, [
541+
[
542+
'uid' => 'foobar',
543+
'method' => 'REQUEST',
544+
'component' => 'VEVENT',
545+
'sender' => 'mailto:[email protected]',
546+
],
547+
[
548+
'uid' => 'foobar',
549+
'method' => 'REQUEST',
550+
'component' => 'VEVENT',
551+
'sender' => 'mailto:[email protected]',
552+
],
553+
['uid' => 'foobar',
554+
'method' => 'REQUEST',
555+
'component' => 'VEVENT',
556+
'sender' => 'mailto:[email protected]',
557+
],
558+
], 'mailto:[email protected]');
559+
}
560+
515561
public function testNoOrganizerHasAttendee()
516562
{
517563
$message = <<<ICS

tests/VObject/ITip/EvolutionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class EvolutionTest extends BrokerTester
77
/**
88
* Evolution does things as usual a little bit differently.
99
*
10-
* We're adding a seprate test just for it.
10+
* We're adding a separate test just for it.
1111
*/
1212
public function testNewEvolutionEvent()
1313
{

0 commit comments

Comments
 (0)