'foobar', 'method' => 'REPLY', 'component' => 'VEVENT', 'sender' => 'mailto:one@example.org', 'senderName' => 'One', 'recipient' => 'mailto:strunk@example.org', 'recipientName' => 'Strunk', 'message' => <<parse($oldMessage, $newMessage, $expected); } 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); } 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); } function testNoChange() { $oldMessage = <<parse($oldMessage, $newMessage, $expected); } 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); } 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. */ 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 */ 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 */ 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); } 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); } 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. */ function testDontCreateReplyWhenEventWasDeclined() { $oldMessage = <<parse($oldMessage, $newMessage, $expected); } function testScheduleAgentOnOrganizer() { $oldMessage = <<parse($oldMessage, $newMessage, $expected); } 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. */ 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 */ 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); } }