[Pkg-owncloud-commits] [php-sabre-vobject] 39/65: new test showing bug #126
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:57:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit 546148c2f1a39841fbe2929921b53b5e6d4500c8
Author: Armin Hackmann <armin at fruux.com>
Date: Fri Jan 23 10:28:43 2015 +0100
new test showing bug #126
---
tests/VObject/ITip/BrokerUpdateEventTest.php | 91 ++++++++++++++++++++++++++++
1 file changed, 91 insertions(+)
diff --git a/tests/VObject/ITip/BrokerUpdateEventTest.php b/tests/VObject/ITip/BrokerUpdateEventTest.php
index 4bedf2b..e285978 100644
--- a/tests/VObject/ITip/BrokerUpdateEventTest.php
+++ b/tests/VObject/ITip/BrokerUpdateEventTest.php
@@ -716,4 +716,95 @@ ICS
$result = $this->parse($oldMessage, $newMessage, $expected, 'mailto:strunk at example.org');
}
+
+ function testInviteChangeExdateOrder() {
+
+ $oldMessage = <<<ICS
+BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//Apple Inc.//Mac OS X 10.10.1//EN
+CALSCALE:GREGORIAN
+BEGIN:VEVENT
+UID:foobar
+SEQUENCE:0
+ORGANIZER;CN=Strunk:mailto:strunk at example.org
+ATTENDEE;CN=Strunk;CUTYPE=INDIVIDUAL;EMAIL=strunk at example.org;PARTSTAT=ACCE
+ PTED:mailto:strunk at example.org
+ATTENDEE;CN=One;CUTYPE=INDIVIDUAL;EMAIL=one at example.org;PARTSTAT=ACCEPTED;R
+ OLE=REQ-PARTICIPANT;SCHEDULE-STATUS="1.2;Message delivered locally":mailto
+ :one at example.org
+SUMMARY:foo
+DTSTART:20141211T160000Z
+DTEND:20141211T170000Z
+RRULE:FREQ=WEEKLY
+EXDATE:20141225T160000Z
+EXDATE:20150101T160000Z
+END:VEVENT
+END:VCALENDAR
+ICS;
+
+
+ $newMessage = <<<ICS
+BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//Apple Inc.//Mac OS X 10.10.1//EN
+CALSCALE:GREGORIAN
+BEGIN:VEVENT
+UID:foobar
+SEQUENCE:1
+ORGANIZER;CN=Strunk:mailto:strunk at example.org
+ATTENDEE;CN=Strunk;CUTYPE=INDIVIDUAL;EMAIL=strunk at example.org;PARTSTAT=ACCE
+ PTED:mailto:strunk at example.org
+ATTENDEE;CN=One;CUTYPE=INDIVIDUAL;EMAIL=one at example.org;PARTSTAT=ACCEPTED;R
+ OLE=REQ-PARTICIPANT;SCHEDULE-STATUS=1.2:mailto:one at example.org
+DTSTART:20141211T160000Z
+DTEND:20141211T170000Z
+RRULE:FREQ=WEEKLY
+EXDATE:20150101T160000Z
+EXDATE:20141225T160000Z
+END:VEVENT
+END:VCALENDAR
+ICS;
+
+ $version = \Sabre\VObject\Version::VERSION;
+
+ $expected = array(
+ array(
+ 'uid' => 'foobar',
+ 'method' => 'REQUEST',
+ 'component' => 'VEVENT',
+ 'sender' => 'mailto:strunk at example.org',
+ 'senderName' => 'Strunk',
+ 'recipient' => 'mailto:one at example.org',
+ 'recipientName' => 'One',
+ 'significantChange' => false,
+ 'message' => <<<ICS
+BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//Sabre//Sabre VObject $version//EN
+CALSCALE:GREGORIAN
+METHOD:REQUEST
+BEGIN:VEVENT
+UID:foobar
+SEQUENCE:1
+ORGANIZER;CN=Strunk:mailto:strunk at example.org
+ATTENDEE;CN=Strunk;CUTYPE=INDIVIDUAL;EMAIL=strunk at example.org;PARTSTAT=ACCE
+ PTED:mailto:strunk at example.org
+ATTENDEE;CN=One;CUTYPE=INDIVIDUAL;EMAIL=one at example.org;PARTSTAT=ACCEPTED;R
+ OLE=REQ-PARTICIPANT:mailto:one at example.org
+DTSTART:20141211T160000Z
+DTEND:20141211T170000Z
+RRULE:FREQ=WEEKLY
+EXDATE:20150101T160000Z
+EXDATE:20141225T160000Z
+END:VEVENT
+END:VCALENDAR
+ICS
+
+ ),
+ );
+
+ $this->parse($oldMessage, $newMessage, $expected, 'mailto:strunk at example.org');
+
+ }
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list