This unittest is created to check if queries for time-range include the start timestamp or not.
More...
This unittest is created to check if queries for time-range include the start timestamp or not.
- Copyright
- Copyright (C) fruux GmbH (https://fruux.com/)
- Author
- Evert Pot (http://evertpot.com/) http://sabre.io/license/ Modified BSD License
Definition at line 14 of file GetEventsByTimerangeTest.php.
◆ testQueryTimerange()
Sabre\CalDAV\GetEventsByTimerangeTest::testQueryTimerange |
( |
| ) |
|
Definition at line 48 of file GetEventsByTimerangeTest.php.
References $request, $response, and Sabre\DAVServerTest\request().
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
request($request, $expectedStatus=null)
Makes a request, and returns a response object.
◆ $caldavCalendarObjects
Sabre\CalDAV\GetEventsByTimerangeTest::$caldavCalendarObjects |
|
protected |
Initial value:= [
1 => [
'event.ics' => [
'calendardata' => 'BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
CREATED:20120313T142342Z
UID:171EBEFC-C951-499D-B234-7BA7D677B45D
DTEND;TZID=Europe/Berlin:20120227T010000
TRANSP:OPAQUE
SUMMARY:Monday 0h
DTSTART;TZID=Europe/Berlin:20120227T000000
DTSTAMP:20120313T142416Z
SEQUENCE:4
END:VEVENT
END:VCALENDAR
'
Definition at line 27 of file GetEventsByTimerangeTest.php.
◆ $caldavCalendars
Sabre\CalDAV\GetEventsByTimerangeTest::$caldavCalendars |
|
protected |
◆ $setupCalDAV
Sabre\CalDAV\GetEventsByTimerangeTest::$setupCalDAV = true |
|
protected |
The documentation for this class was generated from the following file: