This unittest is created to check if a VALARM TRIGGER of PT0S is supported.
More...
This unittest is created to check if a VALARM TRIGGER of PT0S is supported.
- Copyright
- Copyright (C) fruux GmbH (https://fruux.com/)
- Author
- Evert Pot (http://evertpot.com/) http://sabre.io/license/ Modified BSD License
Definition at line 15 of file Issue205Test.php.
◆ testIssue205()
Sabre\CalDAV\Issue205Test::testIssue205 |
( |
| ) |
|
Definition at line 52 of file Issue205Test.php.
References $request, $response, $start, Sabre\HTTP\Sapi\createFromServerArray(), Sabre\VObject\Reader\read(), and Sabre\DAVServerTest\request().
55 'REQUEST_METHOD' =>
'REPORT',
56 'HTTP_CONTENT_TYPE' =>
'application/xml',
57 'REQUEST_URI' =>
'/calendars/user1/calendar1',
61 $request->setBody(
'<?xml version="1.0" encoding="utf-8" ?> 62 <C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> 65 <C:expand start="20120325T220000Z" end="20120401T215959Z"/> 70 <C:comp-filter name="VCALENDAR"> 71 <C:comp-filter name="VEVENT"> 72 <C:comp-filter name="VALARM"> 73 <C:time-range start="20120325T220000Z" end="20120401T215959Z"/> 78 </C:calendar-query>');
82 $this->assertFalse(strpos(
$response->body,
'<s:exception>Exception</s:exception>'),
'Exception occurred: ' .
$response->body);
83 $this->assertFalse(strpos(
$response->body,
'Unknown or bad format'),
'DateTime unknown format Exception: ' .
$response->body);
91 $body = str_replace(
' ',
'', $body);
95 $this->assertEquals(1, count($vObject->VEVENT));
foreach($paths as $path) $request
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
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\Issue205Test::$caldavCalendarObjects |
|
protected |
Initial value:= [
1 => [
'event.ics' => [
'calendardata' => 'BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
UID:20120330T155305CEST-6585fBUVgV
DTSTAMP:20120330T135305Z
DTSTART;TZID=Europe/Berlin:20120326T155200
DTEND;TZID=Europe/Berlin:20120326T165200
SUMMARY:original summary
TRANSP:OPAQUE
BEGIN:VALARM
ACTION:AUDIO
ATTACH;VALUE=URI:Basso
TRIGGER:PT0S
END:VALARM
END:VEVENT
END:VCALENDAR
'
Definition at line 28 of file Issue205Test.php.
◆ $caldavCalendars
Sabre\CalDAV\Issue205Test::$caldavCalendars |
|
protected |
Initial value:= [
[
'id' => 1,
'name' => 'Calendar'
Definition at line 19 of file Issue205Test.php.
◆ $setupCalDAV
Sabre\CalDAV\Issue205Test::$setupCalDAV = true |
|
protected |
The documentation for this class was generated from the following file: