Skip to content

Commit

Permalink
Add unit test for #433
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Oct 30, 2018
1 parent 0abdce6 commit 6c8d7d3
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
48 changes: 47 additions & 1 deletion tests/VObject/ITip/BrokerNewEventTest.php
Expand Up @@ -508,10 +508,56 @@ public function testChangingOrganizers()
END:VCALENDAR
ICS;

$version = \Sabre\VObject\Version::VERSION;
$this->parse(null, $message, [], 'mailto:strunk@example.org');
}

public function testCaseInsensitiveOrganizers()
{
$message = <<<ICS
BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
UID:foobar
ORGANIZER;CN=Strunk:mailto:strunk@example.org
ATTENDEE;CN=One:mailto:one@example.org
ATTENDEE;CN=Two:mailto:two@example.org
DTSTART:20140716T120000Z
DTEND:20140716T130000Z
RRULE:FREQ=DAILY
END:VEVENT
BEGIN:VEVENT
UID:foobar
RECURRENCE-ID:20140718T120000Z
ORGANIZER;CN=Strunk:mailto:Strunk@example.org
ATTENDEE;CN=Two:mailto:two@example.org
ATTENDEE;CN=Three:mailto:three@example.org
DTSTART:20140718T120000Z
DTEND:20140718T130000Z
END:VEVENT
END:VCALENDAR
ICS;

$this->parse(null, $message, [
[
'uid' => 'foobar',
'method' => 'REQUEST',
'component' => 'VEVENT',
'sender' => 'mailto:strunk@example.org',
],
[
'uid' => 'foobar',
'method' => 'REQUEST',
'component' => 'VEVENT',
'sender' => 'mailto:strunk@example.org',
],
['uid' => 'foobar',
'method' => 'REQUEST',
'component' => 'VEVENT',
'sender' => 'mailto:strunk@example.org',
],
], 'mailto:strunk@example.org');
}

public function testNoOrganizerHasAttendee()
{
$message = <<<ICS
Expand Down
2 changes: 1 addition & 1 deletion tests/VObject/ITip/EvolutionTest.php
Expand Up @@ -7,7 +7,7 @@ class EvolutionTest extends BrokerTester
/**
* Evolution does things as usual a little bit differently.
*
* We're adding a seprate test just for it.
* We're adding a separate test just for it.
*/
public function testNewEvolutionEvent()
{
Expand Down

0 comments on commit 6c8d7d3

Please sign in to comment.