ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\CalDAV\Issue211Test Class Reference

This unittest is created to check for an endless loop in Sabre. More...

+ Inheritance diagram for Sabre\CalDAV\Issue211Test:
+ Collaboration diagram for Sabre\CalDAV\Issue211Test:

Public Member Functions

 testIssue211 ()
 
- Public Member Functions inherited from Sabre\DAVServerTest
 setUp ()
 
 initializeEverything ()
 
 request ($request, $expectedStatus=null)
 Makes a request, and returns a response object. More...
 
 autoLogin ($userName)
 This function takes a username and sets the server in a state where this user is logged in, and no longer requires an authentication check. More...
 
 setUpTree ()
 Override this to provide your own Tree for your test-case. More...
 
 setUpBackends ()
 
 assertHttpStatus ($expectedStatus, HTTP\Request $req)
 

Protected Attributes

 $setupCalDAV = true
 
 $caldavCalendars
 
 $caldavCalendarObjects
 
- Protected Attributes inherited from Sabre\DAVServerTest
 $setupCalDAV = false
 
 $setupCardDAV = false
 
 $setupACL = false
 
 $setupCalDAVSharing = false
 
 $setupCalDAVScheduling = false
 
 $setupCalDAVSubscriptions = false
 
 $setupCalDAVICSExport = false
 
 $setupLocks = false
 
 $setupFiles = false
 
 $setupSharing = false
 
 $setupPropertyStorage = false
 
 $caldavCalendars = []
 An array with calendars. More...
 
 $caldavCalendarObjects = []
 
 $carddavAddressBooks = []
 
 $carddavCards = []
 
 $server
 
 $tree = []
 
 $caldavBackend
 
 $carddavBackend
 
 $principalBackend
 
 $locksBackend
 
 $propertyStorageBackend
 
 $caldavPlugin
 
 $carddavPlugin
 
 $aclPlugin
 
 $caldavSharingPlugin
 
 $caldavSchedulePlugin
 
 $authPlugin
 
 $locksPlugin
 
 $sharingPlugin
 
 $propertyStoragePlugin
 
 $autoLogin = null
 If this string is set, we will automatically log in the user with this name. More...
 

Detailed Description

This unittest is created to check for an endless loop in Sabre.

Author
Evert Pot (http://evertpot.com/) http://sabre.io/license/ Modified BSD License

Definition at line 14 of file Issue211Test.php.

Member Function Documentation

◆ testIssue211()

Sabre\CalDAV\Issue211Test::testIssue211 ( )

Definition at line 56 of file Issue211Test.php.

References $request, $response, Sabre\HTTP\Sapi\createFromServerArray(), and Sabre\DAVServerTest\request().

56  {
57 
59  'REQUEST_METHOD' => 'REPORT',
60  'HTTP_CONTENT_TYPE' => 'application/xml',
61  'REQUEST_URI' => '/calendars/user1/calendar1',
62  'HTTP_DEPTH' => '1',
63  ]);
64 
65  $request->setBody('<?xml version="1.0" encoding="utf-8" ?>
66 <C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
67  <D:prop>
68  <C:calendar-data/>
69  <D:getetag/>
70  </D:prop>
71  <C:filter>
72  <C:comp-filter name="VCALENDAR">
73  <C:comp-filter name="VEVENT">
74  <C:comp-filter name="VALARM">
75  <C:time-range start="20120426T220000Z" end="20120427T215959Z"/>
76  </C:comp-filter>
77  </C:comp-filter>
78  </C:comp-filter>
79  </C:filter>
80 </C:calendar-query>');
81 
82  $response = $this->request($request);
83 
84  // if this assert is reached, the endless loop is gone
85  // There should be no matching events
86  $this->assertFalse(strpos('BEGIN:VEVENT', $response->body));
87 
88  }
foreach($paths as $path) $request
Definition: asyncclient.php:32
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.
Definition: Sapi.php:107
$response
+ Here is the call graph for this function:

Field Documentation

◆ $caldavCalendarObjects

Sabre\CalDAV\Issue211Test::$caldavCalendarObjects
protected
Initial value:
= [
1 => [
'event.ics' => [
'calendardata' => 'BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
UID:20120418T172519CEST-3510gh1hVw
DTSTAMP:20120418T152519Z
DTSTART;VALUE=DATE:20120330
DTEND;VALUE=DATE:20120531
EXDATE;TZID=Europe/Berlin:20120330T000000
RRULE:FREQ=YEARLY;INTERVAL=1
SEQUENCE:1
SUMMARY:Birthday
TRANSP:TRANSPARENT
BEGIN:VALARM
ACTION:EMAIL
ATTENDEE:MAILTO:xxx@domain.de
DESCRIPTION:Dies ist eine Kalender Erinnerung
SUMMARY:Kalender Alarm Erinnerung
TRIGGER;VALUE=DATE-TIME:20120329T060000Z
END:VALARM
END:VEVENT
END:VCALENDAR
'

Definition at line 27 of file Issue211Test.php.

◆ $caldavCalendars

Sabre\CalDAV\Issue211Test::$caldavCalendars
protected
Initial value:
= [
[
'id' => 1,
'name' => 'Calendar'

Definition at line 18 of file Issue211Test.php.

◆ $setupCalDAV

Sabre\CalDAV\Issue211Test::$setupCalDAV = true
protected

Definition at line 16 of file Issue211Test.php.


The documentation for this class was generated from the following file: