22 'principaluri' =>
'principals/user1',
30 'calendardata' =>
'BEGIN:VCALENDAR
33CREATED:20120313T142342Z
34UID:171EBEFC-C951-499D-B234-7BA7D677B45D
35DTEND;TZID=Europe/Berlin:20120227T010000
38DTSTART;TZID=Europe/Berlin:20120227T000000
39DTSTAMP:20120313T142416Z
48 function testQueryTimerange() {
52 '/calendars/user1/calendar1',
54 'Content-Type' =>
'application/xml',
59 $request->setBody(
'<?xml version="1.0" encoding="utf-8" ?>
60<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
63 <C:expand start="20120226T220000Z" end="20120228T225959Z"/>
68 <C:comp-filter name="VCALENDAR">
69 <C:comp-filter name="VEVENT">
70 <C:time-range start="20120226T220000Z" end="20120228T225959Z"/>
78 $this->assertTrue(strpos(
$response->body,
'BEGIN:VCALENDAR') !==
false);
foreach($paths as $path) $request
An exception for terminatinating execution or to throw for unit testing.
This unittest is created to check if queries for time-range include the start timestamp or not.
This class may be used as a basis for other webdav-related unittests.
request($request, $expectedStatus=null)
Makes a request, and returns a response object.