BrokerAttendeeReplyTest
extends BrokerTester
in package
Utilities for testing the broker.
Table of Contents
- assertVObjectEqualsVObject() : mixed
- This method tests whether two vcards or icalendar objects are semantically identical.
- parse() : mixed
- process() : mixed
- testAccepted() : mixed
- testAcceptedAllDay() : mixed
- testAcceptedWithTz() : mixed
- testCreateReplyByException() : mixed
- In this test, an event exists in an attendees calendar. The event is recurring, and the attendee deletes 1 instance of the event.
- testCreateReplyByExceptionAllDay() : mixed
- testCreateReplyByExceptionTz() : mixed
- This test is identical to the last, but now we're working with timezones.
- testDeclined() : mixed
- testDeclinedCancelledEvent() : mixed
- testDontCreateReplyWhenEventWasDeclined() : mixed
- In this test, a new exception is created by an attendee as well.
- testNoChange() : mixed
- testNoChangeForceSend() : mixed
- testNoRelevantAttendee() : mixed
- testPartyCrasher() : mixed
- A party crasher is an attendee that accepted an event, but was not in any original invite.
- testRecurringAllDay() : mixed
- testRecurringReply() : mixed
- testReplyNoMasterEvent() : mixed
- This function tests an attendee updating their status to an event where they don't have the master event of.
- testScheduleAgentOnOrganizer() : mixed
Methods
assertVObjectEqualsVObject()
This method tests whether two vcards or icalendar objects are semantically identical.
public
assertVObjectEqualsVObject(resource|string|Component $expected, resource|string|Component $actual[, string $message = '' ]) : mixed
It supports objects being supplied as strings, streams or Sabre\VObject\Component instances.
PRODID is removed from both objects as this is often changes and would just get in the way.
CALSCALE will automatically get removed if it's set to GREGORIAN.
Any property that has the value ANY will be treated as a wildcard.
Parameters
Return values
mixed —parse()
public
parse(mixed $oldMessage, mixed $newMessage[, mixed $expected = [] ][, mixed $currentUser = 'mailto:one@example.org' ]) : mixed
Parameters
- $oldMessage : mixed
- $newMessage : mixed
- $expected : mixed = []
- $currentUser : mixed = 'mailto:one@example.org'
Return values
mixed —process()
public
process(mixed $input[, mixed $existingObject = null ][, mixed $expected = false ]) : mixed
Parameters
- $input : mixed
- $existingObject : mixed = null
- $expected : mixed = false
Return values
mixed —testAccepted()
public
testAccepted() : mixed
Return values
mixed —testAcceptedAllDay()
public
testAcceptedAllDay() : mixed
Return values
mixed —testAcceptedWithTz()
public
testAcceptedWithTz() : mixed
Return values
mixed —testCreateReplyByException()
In this test, an event exists in an attendees calendar. The event is recurring, and the attendee deletes 1 instance of the event.
public
testCreateReplyByException() : mixed
This instance shows up in EXDATE.
This should automatically generate a DECLINED message for that specific instance.
Return values
mixed —testCreateReplyByExceptionAllDay()
public
testCreateReplyByExceptionAllDay() : mixed
Tags
Return values
mixed —testCreateReplyByExceptionTz()
This test is identical to the last, but now we're working with timezones.
public
testCreateReplyByExceptionTz() : mixed
Tags
Return values
mixed —testDeclined()
public
testDeclined() : mixed
Return values
mixed —testDeclinedCancelledEvent()
public
testDeclinedCancelledEvent() : mixed
Return values
mixed —testDontCreateReplyWhenEventWasDeclined()
In this test, a new exception is created by an attendee as well.
public
testDontCreateReplyWhenEventWasDeclined() : mixed
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.
Return values
mixed —testNoChange()
public
testNoChange() : mixed
Return values
mixed —testNoChangeForceSend()
public
testNoChangeForceSend() : mixed
Return values
mixed —testNoRelevantAttendee()
public
testNoRelevantAttendee() : mixed
Return values
mixed —testPartyCrasher()
A party crasher is an attendee that accepted an event, but was not in any original invite.
public
testPartyCrasher() : mixed
Tags
Return values
mixed —testRecurringAllDay()
public
testRecurringAllDay() : mixed
Return values
mixed —testRecurringReply()
public
testRecurringReply() : mixed
Return values
mixed —testReplyNoMasterEvent()
This function tests an attendee updating their status to an event where they don't have the master event of.
public
testReplyNoMasterEvent() : mixed
This is possible in cases an organizer created a recurring event, and invited an attendee for one instance of the event.
Return values
mixed —testScheduleAgentOnOrganizer()
public
testScheduleAgentOnOrganizer() : mixed