Definition at line 7 of file CalendarQueryVAlarmTest.php.
◆ testAlarmWayBefore()
Sabre\CalDAV\CalendarQueryVAlarmTest::testAlarmWayBefore |
( |
| ) |
|
Definition at line 76 of file CalendarQueryVAlarmTest.php.
78 $vcalendar =
new VObject\Component\VCalendar();
80 $vevent = $vcalendar->createComponent(
'VEVENT');
81 $vevent->DTSTART =
'20120101T120000Z';
84 $valarm = $vcalendar->createComponent(
'VALARM');
85 $valarm->TRIGGER =
'-P2W1D';
86 $vevent->add($valarm);
88 $vcalendar->add($vevent);
91 'name' =>
'VCALENDAR',
92 'is-not-defined' =>
false,
98 'is-not-defined' =>
false,
100 'prop-filters' => [],
104 'is-not-defined' =>
false,
105 'prop-filters' => [],
106 'comp-filters' => [],
108 'start' => new \DateTime(
'2011-12-10'),
109 'end' => new \DateTime(
'2011-12-20'),
117 $validator =
new CalendarQueryValidator();
118 $this->assertTrue($validator->validate($vcalendar, $filter));
◆ testValarm()
Sabre\CalDAV\CalendarQueryVAlarmTest::testValarm |
( |
| ) |
|
This test is specifically for a time-range query on a VALARM, contained in a VEVENT that's recurring.
Definition at line 13 of file CalendarQueryVAlarmTest.php.
15 $vcalendar =
new VObject\Component\VCalendar();
17 $vevent = $vcalendar->createComponent(
'VEVENT');
18 $vevent->RRULE =
'FREQ=MONTHLY';
19 $vevent->DTSTART =
'20120101T120000Z';
22 $valarm = $vcalendar->createComponent(
'VALARM');
23 $valarm->TRIGGER =
'-P15D';
24 $vevent->add($valarm);
27 $vcalendar->add($vevent);
30 'name' =>
'VCALENDAR',
31 'is-not-defined' =>
false,
37 'is-not-defined' =>
false,
43 'is-not-defined' =>
false,
47 'start' => new \DateTime(
'2012-05-10'),
48 'end' => new \DateTime(
'2012-05-20'),
56 $validator =
new CalendarQueryValidator();
57 $this->assertTrue($validator->validate($vcalendar, $filter));
59 $vcalendar =
new VObject\Component\VCalendar();
62 $vevent = $vcalendar->createComponent(
'VEVENT');
63 $vevent->RRULE =
'FREQ=MONTHLY;COUNT=1';
64 $vevent->DTSTART =
'20120101T120000Z';
67 $valarm = $vcalendar->createComponent(
'VALARM');
68 $valarm->TRIGGER =
'-P15D';
69 $vevent->add($valarm);
71 $vcalendar->add($vevent);
73 $this->assertFalse($validator->validate($vcalendar, $filter));
The documentation for this class was generated from the following file: