'foobar', 'method' => 'REPLY', 'component' => 'VEVENT', 'sender' => 'mailto:one@example.org', 'senderName' => 'One', 'recipient' => 'mailto:strunk@example.org', 'recipientName' => 'Strunk', 'message' => <<parse($oldMessage, $newMessage, $expected); } public function testRecurringReply() { $oldMessage = << 'foobar', 'method' => 'REPLY', 'component' => 'VEVENT', 'sender' => 'mailto:one@example.org', 'senderName' => 'One', 'recipient' => 'mailto:strunk@example.org', 'recipientName' => 'Strunk', 'message' => <<parse($oldMessage, $newMessage, $expected); } public function testRecurringAllDay() { $oldMessage = << 'foobar', 'method' => 'REPLY', 'component' => 'VEVENT', 'sender' => 'mailto:one@example.org', 'senderName' => 'One', 'recipient' => 'mailto:strunk@example.org', 'recipientName' => 'Strunk', 'message' => <<parse($oldMessage, $newMessage, $expected); } public function testNoChange() { $oldMessage = <<parse($oldMessage, $newMessage, $expected); } public function testNoChangeForceSend() { $oldMessage = << 'foobar', 'method' => 'REPLY', 'component' => 'VEVENT', 'sender' => 'mailto:one@example.org', 'senderName' => 'One', 'recipient' => 'mailto:strunk@example.org', 'recipientName' => 'Strunk', 'message' => <<parse($oldMessage, $newMessage, $expected); } public function testNoRelevantAttendee() { $oldMessage = <<parse($oldMessage, $newMessage, $expected); } /** * In this test, an event exists in an attendees calendar. The event * is recurring, and the attendee deletes 1 instance of the event. * This instance shows up in EXDATE. * * This should automatically generate a DECLINED message for that * specific instance. */ public function testCreateReplyByException() { $oldMessage = << 'foobar', 'method' => 'REPLY', 'component' => 'VEVENT', 'sender' => 'mailto:one@example.org', 'senderName' => null, 'recipient' => 'mailto:organizer@example.org', 'recipientName' => null, 'message' => <<parse($oldMessage, $newMessage, $expected); } /** * This test is identical to the last, but now we're working with * timezones. * * @depends testCreateReplyByException */ public function testCreateReplyByExceptionTz() { $oldMessage = << 'foobar', 'method' => 'REPLY', 'component' => 'VEVENT', 'sender' => 'mailto:one@example.org', 'senderName' => null, 'recipient' => 'mailto:organizer@example.org', 'recipientName' => null, 'message' => <<parse($oldMessage, $newMessage, $expected); } /** * @depends testCreateReplyByException */ public function testCreateReplyByExceptionAllDay() { $oldMessage = << 'foobar', 'method' => 'REPLY', 'component' => 'VEVENT', 'sender' => 'mailto:one@example.org', 'senderName' => null, 'recipient' => 'mailto:organizer@example.org', 'recipientName' => null, 'message' => <<parse($oldMessage, $newMessage, $expected); } public function testDeclined() { $oldMessage = << 'foobar', 'method' => 'REPLY', 'component' => 'VEVENT', 'sender' => 'mailto:one@example.org', 'senderName' => 'One', 'recipient' => 'mailto:strunk@example.org', 'recipientName' => 'Strunk', 'message' => <<parse($oldMessage, $newMessage, $expected); } public function testDeclinedCancelledEvent() { $oldMessage = <<parse($oldMessage, $newMessage, $expected); } /** * In this test, a new exception is created by an attendee as well. * * Except in this case, there was already an overridden event, and the * overridden event was marked as cancelled by the attendee. * * For any other attendence status, the new status would have been * declined, but for this, no message should we sent. */ public function testDontCreateReplyWhenEventWasDeclined() { $oldMessage = <<parse($oldMessage, $newMessage, $expected); } public function testScheduleAgentOnOrganizer() { $oldMessage = <<parse($oldMessage, $newMessage, $expected); } public function testAcceptedAllDay() { $oldMessage = << 'foobar', 'method' => 'REPLY', 'component' => 'VEVENT', 'sender' => 'mailto:one@example.org', 'senderName' => 'One', 'recipient' => 'mailto:strunk@example.org', 'recipientName' => 'Strunk', 'message' => <<parse($oldMessage, $newMessage, $expected); } /** * This function tests an attendee updating their status to an event where * they don't have the master event of. * * This is possible in cases an organizer created a recurring event, and * invited an attendee for one instance of the event. */ public function testReplyNoMasterEvent() { $oldMessage = << 'foobar', 'method' => 'REPLY', 'component' => 'VEVENT', 'sender' => 'mailto:one@example.org', 'senderName' => 'One', 'recipient' => 'mailto:strunk@example.org', 'recipientName' => 'Strunk', 'message' => <<parse($oldMessage, $newMessage, $expected); } /** * A party crasher is an attendee that accepted an event, but was not in * any original invite. * * @depends testAccepted */ public function testPartyCrasher() { $oldMessage = << 'foobar', 'method' => 'REPLY', 'component' => 'VEVENT', 'sender' => 'mailto:one@example.org', 'senderName' => 'One', 'recipient' => 'mailto:strunk@example.org', 'recipientName' => 'Strunk', 'message' => <<parse($oldMessage, $newMessage, $expected); } }