22 'principaluri' =>
'principals/user1',
30 'calendardata' =>
'BEGIN:VCALENDAR 33 UID:20120730T113415CEST-6804EGphkd@xxxxxx.de 34 DTSTAMP:20120730T093415Z 35 DTSTART;VALUE=DATE:20120729 36 DTEND;VALUE=DATE:20120730 49 'REQUEST_METHOD' =>
'REPORT',
50 'HTTP_CONTENT_TYPE' =>
'application/xml',
51 'REQUEST_URI' =>
'/calendars/user1/calendar1',
55 $request->setBody(
'<?xml version="1.0" encoding="utf-8" ?> 56 <C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> 59 <C:expand start="20120730T095609Z" 60 end="20120813T095609Z"/> 65 <C:comp-filter name="VCALENDAR"> 66 <C:comp-filter name="VEVENT"> 67 <C:time-range start="20120730T095609Z" end="20120813T095609Z"/> 71 </C:calendar-query>');
76 $this->assertFalse(strpos(
$response->body,
'BEGIN:VCALENDAR'));
This unittest is created to check if the time-range filter is working correctly with all-day-events...
foreach($paths as $path) $request
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.
static createFromServerArray(array $serverArray)
This static method will create a new Request object, based on a PHP $_SERVER array.