Definition at line 5 of file TestUtil.php.
◆ getBackend()
static Sabre\CalDAV\TestUtil::getBackend |
( |
| ) |
|
|
static |
Definition at line 7 of file TestUtil.php.
Referenced by Sabre\CalDAV\CalendarObjectTest\setup(), Sabre\CalDAV\CalendarHomeTest\setup(), and Sabre\CalDAV\CalendarTest\setup().
9 $backend =
new Backend\Mock();
10 $calendarId = $backend->createCalendar(
14 '{DAV:}displayname' =>
'user1 calendar',
15 '{urn:ietf:params:xml:ns:caldav}calendar-description' =>
'Calendar description',
16 '{http://apple.com/ns/ical/}calendar-order' =>
'1',
17 '{http://apple.com/ns/ical/}calendar-color' =>
'#FF0000',
20 $backend->createCalendar(
24 '{DAV:}displayname' =>
'user1 calendar2',
25 '{urn:ietf:params:xml:ns:caldav}calendar-description' =>
'Calendar description',
26 '{http://apple.com/ns/ical/}calendar-order' =>
'1',
27 '{http://apple.com/ns/ical/}calendar-color' =>
'#FF0000',
30 $backend->createCalendarObject($calendarId,
'UUID-2345', self::getTestCalendarData());
◆ getTestCalendarData()
static Sabre\CalDAV\TestUtil::getTestCalendarData |
( |
|
$type = 1 | ) |
|
|
static |
◆ getTestTODO()
static Sabre\CalDAV\TestUtil::getTestTODO |
( |
|
$type = 'due' | ) |
|
|
static |
Definition at line 103 of file TestUtil.php.
References $type.
108 $extra =
"DUE:20100104T000000Z";
111 $extra =
"DUE:20060104T000000Z";
114 $extra =
"DUE;VALUE=DATE:20060104";
117 $extra =
"DUE;TZID=Asia/Seoul:20060104T000000Z";
120 $extra =
"DTSTART:20050223T060000Z\nDUE:20060104T000000Z";
122 case 'due_dtstart2' :
123 $extra =
"DTSTART:20090223T060000Z\nDUE:20100104T000000Z";
126 $extra =
'DTSTART:20100223T060000Z';
129 $extra =
'DTSTART:20060223T060000Z';
131 case 'dtstart_date' :
132 $extra =
'DTSTART;VALUE=DATE:20100223';
135 $extra =
'DTSTART;TZID=Asia/Seoul:20100223T060000Z';
137 case 'dtstart_duration' :
138 $extra =
"DTSTART:20061023T060000Z\nDURATION:PT1H";
140 case 'dtstart_duration2' :
141 $extra =
"DTSTART:20101023T060000Z\nDURATION:PT1H";
144 $extra =
'COMPLETED:20060601T000000Z';
147 $extra =
'COMPLETED:20090601T000000Z';
150 $extra =
'CREATED:20060601T000000Z';
153 $extra =
'CREATED:20090601T000000Z';
155 case 'completedcreated' :
156 $extra =
"CREATED:20060601T000000Z\nCOMPLETED:20070101T000000Z";
158 case 'completedcreated2' :
159 $extra =
"CREATED:20090601T000000Z\nCOMPLETED:20100101T000000Z";
162 $extra =
'X-FILLER:oh hello';
169 $todo =
'BEGIN:VCALENDAR 171 PRODID:-//Example Corp.//CalDAV Client//EN 173 DTSTAMP:20060205T235335Z 177 UID:DDDEEB7915FA61233B861457@example.com 180 TRIGGER;RELATED=START:-PT10M
The documentation for this class was generated from the following file:
- libs/composer/vendor/sabre/dav/tests/Sabre/CalDAV/TestUtil.php