[Pkg-owncloud-commits] [php-sabre-vobject] 92/106: Testing instance removal.
David Prévot
taffit at moszumanska.debian.org
Fri Aug 22 15:11:09 UTC 2014
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 43c79797a913489536dde9390f2a7d62f7a2aaf2
Author: Evert Pot <me at evertpot.com>
Date: Tue Aug 12 16:03:27 2014 -0400
Testing instance removal.
---
tests/VObject/ITip/BrokerUpdateEventTest.php | 68 ++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
diff --git a/tests/VObject/ITip/BrokerUpdateEventTest.php b/tests/VObject/ITip/BrokerUpdateEventTest.php
index c45e82e..18a3f75 100644
--- a/tests/VObject/ITip/BrokerUpdateEventTest.php
+++ b/tests/VObject/ITip/BrokerUpdateEventTest.php
@@ -218,6 +218,74 @@ ICS;
}
+ function testRemoveInstance() {
+
+ $oldMessage = <<<ICS
+BEGIN:VCALENDAR
+VERSION:2.0
+BEGIN:VEVENT
+UID:foobar
+SEQUENCE:1
+ORGANIZER;CN=Strunk:mailto:strunk at example.org
+ATTENDEE;CN=One:mailto:one at example.org
+DTSTART;TZID=America/Toronto:20140716T120000
+RRULE:FREQ=WEEKLY
+END:VEVENT
+END:VCALENDAR
+ICS;
+
+
+ $newMessage = <<<ICS
+BEGIN:VCALENDAR
+VERSION:2.0
+BEGIN:VEVENT
+UID:foobar
+SEQUENCE:2
+ORGANIZER;CN=Strunk:mailto:strunk at example.org
+ATTENDEE;CN=One:mailto:one at example.org
+DTSTART;TZID=America/Toronto:20140716T120000
+RRULE:FREQ=WEEKLY
+EXDATE;TZID=America/Toronto:20140724T120000
+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',
+ 'message' => <<<ICS
+BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//Sabre//Sabre VObject $version//EN
+CALSCALE:GREGORIAN
+METHOD:REQUEST
+BEGIN:VEVENT
+UID:foobar
+SEQUENCE:2
+ORGANIZER;CN=Strunk:mailto:strunk at example.org
+ATTENDEE;CN=One:mailto:one at example.org
+DTSTART;TZID=America/Toronto:20140716T120000
+RRULE:FREQ=WEEKLY
+EXDATE;TZID=America/Toronto:20140724T120000
+END:VEVENT
+END:VCALENDAR
+ICS
+
+ ),
+ );
+
+ $result = $this->parse($oldMessage, $newMessage, $expected);
+
+ }
+
function parse($oldMessage, $newMessage, $expected = array()) {
$broker = new Broker();
--
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