ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\CalDAV\Schedule\PluginBasicTest Class Reference
+ Inheritance diagram for Sabre\CalDAV\Schedule\PluginBasicTest:
+ Collaboration diagram for Sabre\CalDAV\Schedule\PluginBasicTest:

Public Member Functions

 testSimple ()
 
 testOptions ()
 
 testGetHTTPMethods ()
 
- 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)
 

Data Fields

 $setupCalDAV = true
 
 $setupCalDAVScheduling = true
 

Additional Inherited Members

- 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

Definition at line 5 of file PluginBasicTest.php.

Member Function Documentation

◆ testGetHTTPMethods()

Sabre\CalDAV\Schedule\PluginBasicTest::testGetHTTPMethods ( )

Definition at line 31 of file PluginBasicTest.php.

31  {
32 
33  $this->assertEquals([], $this->caldavSchedulePlugin->getHTTPMethods('notfound'));
34  $this->assertEquals([], $this->caldavSchedulePlugin->getHTTPMethods('calendars/user1'));
35  $this->assertEquals(['POST'], $this->caldavSchedulePlugin->getHTTPMethods('calendars/user1/outbox'));
36 
37  }

◆ testOptions()

Sabre\CalDAV\Schedule\PluginBasicTest::testOptions ( )

Definition at line 20 of file PluginBasicTest.php.

20  {
21 
22  $plugin = new Plugin();
23  $expected = [
24  'calendar-auto-schedule',
25  'calendar-availability',
26  ];
27  $this->assertEquals($expected, $plugin->getFeatures());
28 
29  }

◆ testSimple()

Sabre\CalDAV\Schedule\PluginBasicTest::testSimple ( )

Definition at line 10 of file PluginBasicTest.php.

10  {
11 
12  $plugin = new Plugin();
13  $this->assertEquals(
14  'caldav-schedule',
15  $plugin->getPluginInfo()['name']
16  );
17 
18  }

Field Documentation

◆ $setupCalDAV

Sabre\CalDAV\Schedule\PluginBasicTest::$setupCalDAV = true

Definition at line 7 of file PluginBasicTest.php.

◆ $setupCalDAVScheduling

Sabre\CalDAV\Schedule\PluginBasicTest::$setupCalDAVScheduling = true

Definition at line 8 of file PluginBasicTest.php.


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