ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
testGeneratorBaseObject () | |
testInvalidArg () | |
InvalidArgumentException More... | |
assertFreeBusyReport ($expected, $input, $timeZone=null, $vavailability=null) | |
This function takes a list of objects (icalendar objects), and turns them into a freebusy report. More... | |
testSimple () | |
testSource () | |
testOpaque () | |
Testing TRANSP:OPAQUE. More... | |
testTransparent () | |
Testing TRANSP:TRANSPARENT. More... | |
testCancelled () | |
Testing STATUS:CANCELLED. More... | |
testTentative () | |
Testing STATUS:TENTATIVE. More... | |
testOutsideTimeRange () | |
Testing an event that falls outside of the report time-range. More... | |
testOutsideTimeRange2 () | |
Testing an event that falls outside of the report time-range. More... | |
testDuration () | |
Testing an event that uses DURATION. More... | |
testAllDay () | |
Testing an all-day event. More... | |
testNoDuration () | |
Testing an event that has no end or duration. More... | |
testObject () | |
Testing feeding the freebusy generator an object instead of a string. More... | |
testVFreeBusy () | |
Testing feeding VFREEBUSY objects instead of VEVENT. More... | |
testYearlyRecurrence () | |
testYearlyRecurrenceDuration () | |
testFloatingTime () | |
testFloatingTimeReferenceTimeZone () | |
testAllDay2 () | |
testAllDayReferenceTimeZone () | |
testNoValidInstances () | |
testVAvailabilitySimple () | |
This VAVAILABILITY object overlaps with the time-range, but we're just busy the entire time. More... | |
testVAvailabilityIrrelevant () | |
This VAVAILABILITY object does not overlap at all with the freebusy report, so it should be ignored. More... | |
testVAvailabilityOfficeHours () | |
This VAVAILABILITY object has a 9am-5pm AVAILABLE object for office hours. More... | |
testVAvailabilityOfficeHoursVacation () | |
This test has the same office hours, but has a vacation blocked off for the relevant time, using a higher priority. More... | |
testVAvailabilityOfficeHoursVacation2 () | |
This test has the same input as the last, except somebody mixed up the PRIORITY values. More... | |
Definition at line 7 of file FreeBusyGeneratorTest.php.
Sabre\VObject\FreeBusyGeneratorTest::assertFreeBusyReport | ( | $expected, | |
$input, | |||
$timeZone = null , |
|||
$vavailability = null |
|||
) |
This function takes a list of objects (icalendar objects), and turns them into a freebusy report.
Then it takes the expected output and compares it to what we actually got.
It only generates the freebusy report for the following time-range: 2011-01-01 11:00:00 until 2011-01-03 11:11:11
string | $expected | |
array | $input | |
string | null | $timeZone | |
string | $vavailability |
Definition at line 55 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\$input, Sabre\VObject\$output, $timeZone, and Sabre\VObject\Reader\read().
Referenced by Sabre\VObject\FreeBusyGeneratorTest\testAllDay(), Sabre\VObject\FreeBusyGeneratorTest\testAllDay2(), Sabre\VObject\FreeBusyGeneratorTest\testAllDayReferenceTimeZone(), Sabre\VObject\FreeBusyGeneratorTest\testCancelled(), Sabre\VObject\FreeBusyGeneratorTest\testDuration(), Sabre\VObject\FreeBusyGeneratorTest\testFloatingTime(), Sabre\VObject\FreeBusyGeneratorTest\testFloatingTimeReferenceTimeZone(), Sabre\VObject\FreeBusyGeneratorTest\testNoDuration(), Sabre\VObject\FreeBusyGeneratorTest\testNoValidInstances(), Sabre\VObject\FreeBusyGeneratorTest\testObject(), Sabre\VObject\FreeBusyGeneratorTest\testOpaque(), Sabre\VObject\FreeBusyGeneratorTest\testOutsideTimeRange(), Sabre\VObject\FreeBusyGeneratorTest\testOutsideTimeRange2(), Sabre\VObject\FreeBusyGeneratorTest\testSimple(), Sabre\VObject\FreeBusyGeneratorTest\testSource(), Sabre\VObject\FreeBusyGeneratorTest\testTentative(), Sabre\VObject\FreeBusyGeneratorTest\testTransparent(), Sabre\VObject\FreeBusyGeneratorTest\testVAvailabilityIrrelevant(), Sabre\VObject\FreeBusyGeneratorTest\testVAvailabilityOfficeHours(), Sabre\VObject\FreeBusyGeneratorTest\testVAvailabilityOfficeHoursVacation(), Sabre\VObject\FreeBusyGeneratorTest\testVAvailabilityOfficeHoursVacation2(), Sabre\VObject\FreeBusyGeneratorTest\testVAvailabilitySimple(), Sabre\VObject\FreeBusyGeneratorTest\testVFreeBusy(), Sabre\VObject\FreeBusyGeneratorTest\testYearlyRecurrence(), and Sabre\VObject\FreeBusyGeneratorTest\testYearlyRecurrenceDuration().
Sabre\VObject\FreeBusyGeneratorTest::testAllDay | ( | ) |
Testing an all-day event.
Definition at line 301 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testAllDay2 | ( | ) |
Definition at line 475 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testAllDayReferenceTimeZone | ( | ) |
Definition at line 494 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testCancelled | ( | ) |
Testing STATUS:CANCELLED.
Definition at line 184 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testDuration | ( | ) |
Testing an event that uses DURATION.
Definition at line 278 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testFloatingTime | ( | ) |
Definition at line 434 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testFloatingTimeReferenceTimeZone | ( | ) |
Definition at line 454 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testGeneratorBaseObject | ( | ) |
Sabre\VObject\FreeBusyGeneratorTest::testInvalidArg | ( | ) |
InvalidArgumentException
Definition at line 29 of file FreeBusyGeneratorTest.php.
Sabre\VObject\FreeBusyGeneratorTest::testNoDuration | ( | ) |
Testing an event that has no end or duration.
Definition at line 323 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testNoValidInstances | ( | ) |
Definition at line 514 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testObject | ( | ) |
Testing feeding the freebusy generator an object instead of a string.
Definition at line 345 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport(), and Sabre\VObject\Reader\read().
Sabre\VObject\FreeBusyGeneratorTest::testOpaque | ( | ) |
Testing TRANSP:OPAQUE.
Definition at line 137 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testOutsideTimeRange | ( | ) |
Testing an event that falls outside of the report time-range.
Definition at line 232 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testOutsideTimeRange2 | ( | ) |
Testing an event that falls outside of the report time-range.
Definition at line 255 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testSimple | ( | ) |
Definition at line 91 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testSource | ( | ) |
Definition at line 111 of file FreeBusyGeneratorTest.php.
References $h, and Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testTentative | ( | ) |
Testing STATUS:TENTATIVE.
Definition at line 208 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testTransparent | ( | ) |
Testing TRANSP:TRANSPARENT.
Definition at line 160 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testVAvailabilityIrrelevant | ( | ) |
This VAVAILABILITY object does not overlap at all with the freebusy report, so it should be ignored.
Definition at line 580 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testVAvailabilityOfficeHours | ( | ) |
This VAVAILABILITY object has a 9am-5pm AVAILABLE object for office hours.
Definition at line 618 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testVAvailabilityOfficeHoursVacation | ( | ) |
This test has the same office hours, but has a vacation blocked off for the relevant time, using a higher priority.
(lower number).
Definition at line 660 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testVAvailabilityOfficeHoursVacation2 | ( | ) |
This test has the same input as the last, except somebody mixed up the PRIORITY values.
The end-result is that the vacation VAVAILABILITY is completely ignored.
Definition at line 709 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testVAvailabilitySimple | ( | ) |
This VAVAILABILITY object overlaps with the time-range, but we're just busy the entire time.
Definition at line 540 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testVFreeBusy | ( | ) |
Testing feeding VFREEBUSY objects instead of VEVENT.
Definition at line 369 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testYearlyRecurrence | ( | ) |
Definition at line 392 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().
Sabre\VObject\FreeBusyGeneratorTest::testYearlyRecurrenceDuration | ( | ) |
Definition at line 413 of file FreeBusyGeneratorTest.php.
References Sabre\VObject\FreeBusyGeneratorTest\assertFreeBusyReport().