'foobar', 'method' => 'CANCEL', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'significantChange' => true, 'message' => << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:two@example.org', 'recipientName' => 'Two', 'significantChange' => false, 'message' => << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:three@example.org', 'recipientName' => 'Three', 'significantChange' => true, 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } function testInviteChangeFromNonSchedulingToSchedulingObject() { $oldMessage = << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } function testInviteChangeFromSchedulingToNonSchedulingObject() { $oldMessage = << 'foobar', 'method' => 'CANCEL', 'component' => 'VEVENT', 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } function testNoAttendees() { $oldMessage = <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } function testRemoveInstance() { $oldMessage = << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } /** * This test is identical to the first test, except this time we change the * DURATION property. * * This should ensure that the message is significant for every attendee, */ function testInviteChangeSignificantChange() { $oldMessage = << 'foobar', 'method' => 'CANCEL', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'significantChange' => true, 'message' => << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:two@example.org', 'recipientName' => 'Two', 'significantChange' => true, 'message' => << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:three@example.org', 'recipientName' => 'Three', 'significantChange' => true, 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } function testInviteNoChange() { $oldMessage = << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'significantChange' => false, 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } function testInviteNoChangeForceSend() { $oldMessage = << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'significantChange' => true, 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } function testInviteRemoveAttendees() { $oldMessage = << 'foobar', 'method' => 'CANCEL', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'significantChange' => true, 'message' => << 'foobar', 'method' => 'CANCEL', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:two@example.org', 'recipientName' => 'Two', 'significantChange' => true, 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } function testInviteChangeExdateOrder() { $oldMessage = << 'foobar', 'method' => 'REQUEST', 'component' => 'VEVENT', 'sender' => 'mailto:strunk@example.org', 'senderName' => 'Strunk', 'recipient' => 'mailto:one@example.org', 'recipientName' => 'One', 'significantChange' => false, 'message' => <<parse($oldMessage, $newMessage, $expected, 'mailto:strunk@example.org'); } }