22 'principaluri' =>
'principals/user1',
30 'calendardata' =>
'BEGIN:VCALENDAR 33 CREATED:20120313T142342Z 34 UID:171EBEFC-C951-499D-B234-7BA7D677B45D 35 DTEND;TZID=Europe/Berlin:20120227T010000 38 DTSTART;TZID=Europe/Berlin:20120227T000000 39 DTSTAMP:20120313T142416Z 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"/> 74 </C:calendar-query>');
78 $this->assertTrue(strpos(
$response->body,
'BEGIN:VCALENDAR') !==
false);
foreach($paths as $path) $request
This class may be used as a basis for other webdav-related unittests.
This unittest is created to check if queries for time-range include the start timestamp or not...
request($request, $expectedStatus=null)
Makes a request, and returns a response object.