This unittest is created to check if the time-range filter is working correctly with all-day-events.
More...
This unittest is created to check if the time-range filter is working correctly with all-day-events.
- 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 Issue228Test.php.
◆ testIssue228()
Sabre\CalDAV\Issue228Test::testIssue228 |
( |
| ) |
|
Definition at line 46 of file Issue228Test.php.
References $request, $response, Sabre\HTTP\Sapi\createFromServerArray(), and Sabre\DAVServerTest\request().
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'));
foreach($paths as $path) $request
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.
◆ $caldavCalendarObjects
Sabre\CalDAV\Issue228Test::$caldavCalendarObjects |
|
protected |
Initial value:= [
1 => [
'event.ics' => [
'calendardata' => 'BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
UID:20120730T113415CEST-6804EGphkd@xxxxxx.de
DTSTAMP:20120730T093415Z
DTSTART;VALUE=DATE:20120729
DTEND;VALUE=DATE:20120730
SUMMARY:sunday event
TRANSP:TRANSPARENT
END:VEVENT
END:VCALENDAR
'
Definition at line 27 of file Issue228Test.php.
◆ $caldavCalendars
Sabre\CalDAV\Issue228Test::$caldavCalendars |
|
protected |
Initial value:= [
[
'id' => 1,
'name' => 'Calendar'
Definition at line 18 of file Issue228Test.php.
◆ $setupCalDAV
Sabre\CalDAV\Issue228Test::$setupCalDAV = true |
|
protected |
The documentation for this class was generated from the following file: