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

This unittest is created to check if the time-range filter is working correctly with all-day-events. More...

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

Public Member Functions

 testIssue228 ()
 
- 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 if the time-range filter is working correctly with all-day-events.

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

Definition at line 14 of file Issue228Test.php.

Member Function Documentation

◆ testIssue228()

Sabre\CalDAV\Issue228Test::testIssue228 ( )

Definition at line 46 of file Issue228Test.php.

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

46  {
47 
49  'REQUEST_METHOD' => 'REPORT',
50  'HTTP_CONTENT_TYPE' => 'application/xml',
51  'REQUEST_URI' => '/calendars/user1/calendar1',
52  'HTTP_DEPTH' => '1',
53  ]);
54 
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">
57  <D:prop>
58  <C:calendar-data>
59  <C:expand start="20120730T095609Z"
60  end="20120813T095609Z"/>
61 </C:calendar-data>
62  <D:getetag/>
63  </D:prop>
64  <C:filter>
65  <C:comp-filter name="VCALENDAR">
66  <C:comp-filter name="VEVENT">
67  <C:time-range start="20120730T095609Z" end="20120813T095609Z"/>
68  </C:comp-filter>
69  </C:comp-filter>
70  </C:filter>
71 </C:calendar-query>');
72 
73  $response = $this->request($request);
74 
75  // We must check if absolutely nothing was returned from this query.
76  $this->assertFalse(strpos($response->body, 'BEGIN:VCALENDAR'));
77 
78  }
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\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

Definition at line 16 of file Issue228Test.php.


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