ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
This class may be used as a basis for other webdav-related unittests. More...
Public Member Functions | |
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 = 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... | |
This class may be used as a basis for other webdav-related unittests.
This class is supposed to provide a reasonably big framework to quickly get a testing environment running.
Definition at line 19 of file DAVServerTest.php.
Sabre\DAVServerTest::assertHttpStatus | ( | $expectedStatus, | |
HTTP\Request | $req | ||
) |
Definition at line 299 of file DAVServerTest.php.
Sabre\DAVServerTest::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.
string | $userName |
Definition at line 218 of file DAVServerTest.php.
References $authBackend.
Referenced by Sabre\CalDAV\ICSExportPluginTest\testACLIntegrationNotBlocked().
Sabre\DAVServerTest::initializeEverything | ( | ) |
Definition at line 117 of file DAVServerTest.php.
Sabre\DAVServerTest::request | ( | $request, | |
$expectedStatus = null |
|||
) |
Makes a request, and returns a response object.
You can either pass an instance of Sabre, or an array, which will then be used as the _SERVER array.
If $expectedStatus is set, we'll compare it with the HTTP status of the returned response. If it doesn't match, we'll immediately fail the test.
array | \Sabre\HTTP\Request | $request | |
int | $expectedStatus |
Definition at line 193 of file DAVServerTest.php.
References $request, and $response.
Referenced by Sabre\CalDAV\ICSExportPluginTest\testACLIntegrationBlocked(), Sabre\CalDAV\ICSExportPluginTest\testACLIntegrationNotBlocked(), Sabre\CalDAV\ICSExportPluginTest\testBadEndParam(), Sabre\CalDAV\ICSExportPluginTest\testBadStartParam(), Sabre\CalDAV\ICSExportPluginTest\testBeforeMethod(), Sabre\CalDAV\ICSExportPluginTest\testBeforeMethodNoVersion(), Sabre\CalDAV\JCalTransformTest\testCalendarQueryDepth0(), Sabre\CalDAV\JCalTransformTest\testCalendarQueryDepth1(), Sabre\CardDAV\VCFExportTest\testContentDisposition(), Sabre\CalDAV\ICSExportPluginTest\testContentDisposition(), Sabre\CardDAV\VCFExportTest\testContentDispositionBadChars(), Sabre\CalDAV\ICSExportPluginTest\testContentDispositionBadChars(), Sabre\CalDAV\ICSExportPluginTest\testContentDispositionJson(), Sabre\DAV\HttpCopyTest\testCopyColl(), Sabre\DAV\HttpCopyTest\testCopyCollIntoSubtree(), Sabre\DAV\HttpCopyTest\testCopyCollToExisting(), Sabre\DAV\HttpCopyTest\testCopyCollToExistingOverwriteF(), Sabre\DAV\HttpCopyTest\testCopyCollToExistingOverwriteT(), Sabre\DAV\HttpCopyTest\testCopyCollToSelf(), Sabre\DAV\HttpCopyTest\testCopyFile(), Sabre\DAV\HttpCopyTest\testCopyFileNonExistantParent(), Sabre\DAV\HttpCopyTest\testCopyFileToExistinBlockedCreateDestination(), Sabre\DAV\HttpCopyTest\testCopyFileToExisting(), Sabre\DAV\HttpCopyTest\testCopyFileToExistingOverwriteBadValue(), Sabre\DAV\HttpCopyTest\testCopyFileToExistingOverwriteF(), Sabre\DAV\HttpCopyTest\testCopyFileToExistingOverwriteT(), Sabre\DAV\HttpCopyTest\testCopyFileToSelf(), Sabre\DAV\ServerRangeTest\testCrazyRange(), Sabre\DAV\HttpDeleteTest\testDelete(), Sabre\DAV\HttpDeleteTest\testDeleteDirectory(), Sabre\DAV\HttpDeleteTest\testDeleteNotFound(), Sabre\DAV\HttpDeleteTest\testDeletePreconditions(), Sabre\DAV\HttpDeleteTest\testDeletePreconditionsFailed(), Sabre\CalDAV\Schedule\DeliverNewEventTest\testDelivery(), Sabre\DAV\HttpHeadTest\testDoubleAuth(), Sabre\DAV\ServerRangeTest\testEndRange(), Sabre\CalDAV\ExpandEventsDoubleEventsTest\testExpand(), Sabre\CalDAV\ICSExportPluginTest\testExpand(), Sabre\CalDAV\ICSExportPluginTest\testExpandNoStart(), Sabre\CardDAV\VCFExportTest\testExport(), Sabre\CalDAV\ICSExportPluginTest\testFilterComponentBadComponent(), Sabre\CalDAV\ICSExportPluginTest\testFilterComponentVEVENT(), Sabre\CalDAV\ICSExportPluginTest\testFilterComponentVTODO(), Sabre\CalDAV\ICSExportPluginTest\testFilterStartEnd(), Sabre\DAV\HttpPutTest\testFinderPutFail(), Sabre\DAV\HttpPutTest\testFinderPutSuccess(), Sabre\CalDAV\JCalTransformTest\testGet(), Sabre\DAV\HttpGetTest\testGet(), Sabre\DAV\HttpGetTest\testGet404(), Sabre\DAV\HttpGetTest\testGet404_aswell(), Sabre\DAV\HttpGetTest\testGetCollection(), Sabre\DAV\HttpGetTest\testGetDoubleSlash(), Sabre\DAV\HttpGetTest\testGetHttp10(), Sabre\DAV\HttpGetTest\testGetStreaming(), Sabre\DAV\HttpHeadTest\testHEAD(), Sabre\DAV\HttpHeadTest\testHEADCollection(), Sabre\DAV\Sync\PluginTest\testIfConditions(), Sabre\DAV\Sync\PluginTest\testIfConditionsNoSyncToken(), Sabre\DAV\Sync\PluginTest\testIfConditionsNot(), Sabre\DAV\ServerRangeTest\testIfRangeEtag(), Sabre\DAV\ServerRangeTest\testIfRangeEtagIncorrect(), Sabre\DAV\ServerRangeTest\testIfRangeModificationDate(), Sabre\DAV\ServerRangeTest\testIfRangeModificationDateModified(), Sabre\CalDAV\SharingPluginTest\testInviteBadXML(), Sabre\CalDAV\SharingPluginTest\testInviteReply(), Sabre\CalDAV\SharingPluginTest\testInviteWrongUrl(), Sabre\CalDAV\Issue205Test\testIssue205(), Sabre\CalDAV\Issue211Test\testIssue211(), Sabre\CalDAV\Issue220Test\testIssue220(), Sabre\CalDAV\Issue228Test\testIssue228(), Sabre\CalDAV\ICSExportPluginTest\testJCal(), Sabre\CalDAV\ICSExportPluginTest\testJCalInUrl(), Sabre\CalDAV\Subscriptions\CreateSubscriptionTest\testMKCALENDAR(), Sabre\CalDAV\Subscriptions\CreateSubscriptionTest\testMKCOL(), Sabre\DAV\HttpMoveTest\testMove(), Sabre\DAV\HttpMoveTest\testMoveToExisting(), Sabre\DAV\HttpMoveTest\testMoveToExistingBlockedDeleteSource(), Sabre\DAV\HttpMoveTest\testMoveToExistingOverwriteF(), Sabre\DAV\HttpMoveTest\testMoveToExistingOverwriteT(), Sabre\DAV\HttpMoveTest\testMoveToSelf(), Sabre\CalDAV\JCalTransformTest\testMultiGet(), Sabre\CalDAV\ICSExportPluginTest\testNegotiateDefault(), Sabre\DAV\ServerRangeTest\testNonSeekableStream(), Sabre\DAV\PartialUpdate\PluginTest\testPatchBadRange(), Sabre\DAV\PartialUpdate\PluginTest\testPatchNoContentType(), Sabre\DAV\PartialUpdate\PluginTest\testPatchNoEndRange(), Sabre\DAV\PartialUpdate\PluginTest\testPatchNoLength(), Sabre\DAV\PartialUpdate\PluginTest\testPatchNoRange(), Sabre\DAV\PartialUpdate\PluginTest\testPatchNotSupported(), Sabre\DAV\PartialUpdate\PluginTest\testPatchSuccess(), Sabre\DAVACL\PrincipalMatchTest\testPrincipalMatch(), Sabre\DAV\HTTPPreferParsingTest\testpropfindMinimal(), Sabre\DAV\HTTPPreferParsingTest\testproppatchMinimal(), Sabre\DAV\HTTPPreferParsingTest\testproppatchMinimalError(), Sabre\CalDAV\SharingPluginTest\testPublish(), Sabre\CalDAV\SharingPluginTest\testPublishWrongUrl(), Sabre\DAV\HttpPutTest\testPut(), Sabre\DAV\HttpPutTest\testPutContentRange(), Sabre\DAV\HttpPutTest\testPutExisting(), Sabre\DAV\HttpPutTest\testPutExistingIfMatchCorrect(), Sabre\DAV\HttpPutTest\testPutExistingIfMatchStar(), Sabre\DAV\HttpPutTest\testPutExistingIfNoneMatchStar(), Sabre\DAV\HttpPutTest\testPutIfMatchStar(), Sabre\DAV\HttpPutTest\testPutIfNoneMatchStar(), Sabre\DAV\HttpPutTest\testPutIntercept(), Sabre\DAV\HttpPutTest\testPutNoParent(), Sabre\CalDAV\GetEventsByTimerangeTest\testQueryTimerange(), Sabre\DAV\ServerRangeTest\testRange(), Sabre\DAVACL\AclPrincipalPropSetReportTest\testReport(), Sabre\DAVACL\AclPrincipalPropSetReportTest\testReportDepth1(), Sabre\CalDAV\SharingPluginTest\testShareRequest(), Sabre\CalDAV\SharingPluginTest\testShareRequestNoShareableCalendar(), Sabre\DAV\Sharing\ShareResourceTest\testShareResource(), Sabre\DAV\Sharing\ShareResourceTest\testShareResourceInviteProperty(), Sabre\DAV\Sharing\ShareResourceTest\testShareResourceNotFound(), Sabre\DAV\Sharing\ShareResourceTest\testShareResourceNotISharedNode(), Sabre\DAV\Sharing\ShareResourceTest\testShareResourceRemoveAccess(), Sabre\DAV\Sharing\ShareResourceTest\testShareResourceUnknownDoc(), Sabre\DAV\ServerRangeTest\testStartRange(), Sabre\DAV\Sync\PluginTest\testSubsequentSyncSyncCollection(), Sabre\DAV\Sync\PluginTest\testSubsequentSyncSyncCollectionDepthFallBack(), Sabre\DAV\Sync\PluginTest\testSubsequentSyncSyncCollectionLimit(), Sabre\DAV\Sync\PluginTest\testSyncInitialSyncCollection(), Sabre\DAV\Sync\PluginTest\testSyncInvalidToken(), Sabre\DAV\Sync\PluginTest\testSyncInvalidTokenNoPrefix(), Sabre\DAV\Sync\PluginTest\testSyncNoProp(), Sabre\DAV\Sync\PluginTest\testSyncNoSyncCollection(), Sabre\DAV\Sync\PluginTest\testSyncNoSyncInfo(), Sabre\DAV\Sync\PluginTest\testSyncNoSyncToken(), Sabre\DAV\ServerRangeTest\testTooHighRange(), Sabre\CalDAV\SharingPluginTest\testUnknownMethodNoNode(), Sabre\CalDAV\SharingPluginTest\testUnknownMethodNoPOST(), Sabre\CalDAV\SharingPluginTest\testUnknownMethodNoXML(), Sabre\CalDAV\SharingPluginTest\testUnknownXmlDoc(), Sabre\DAV\Locks\Plugin2Test\testUnlockAfterDelete(), Sabre\CalDAV\SharingPluginTest\testUnpublish(), and Sabre\CalDAV\SharingPluginTest\testUnpublishWrongUrl().
Sabre\DAVServerTest::setUp | ( | ) |
Definition at line 111 of file DAVServerTest.php.
Sabre\DAVServerTest::setUpBackends | ( | ) |
Definition at line 268 of file DAVServerTest.php.
Sabre\DAVServerTest::setUpTree | ( | ) |
Override this to provide your own Tree for your test-case.
Definition at line 236 of file DAVServerTest.php.
|
protected |
Definition at line 69 of file DAVServerTest.php.
Referenced by Sabre\CalDAV\ICSExportPluginTest\testACLIntegrationBlocked(), and Sabre\CalDAV\ICSExportPluginTest\testACLIntegrationNotBlocked().
|
protected |
Definition at line 86 of file DAVServerTest.php.
|
protected |
If this string is set, we will automatically log in the user with this name.
Definition at line 109 of file DAVServerTest.php.
|
protected |
Definition at line 50 of file DAVServerTest.php.
|
protected |
Definition at line 39 of file DAVServerTest.php.
|
protected |
An array with calendars.
Every calendar should have
Definition at line 38 of file DAVServerTest.php.
|
protected |
Definition at line 59 of file DAVServerTest.php.
|
protected |
Definition at line 81 of file DAVServerTest.php.
|
protected |
Definition at line 74 of file DAVServerTest.php.
|
protected |
Definition at line 41 of file DAVServerTest.php.
|
protected |
Definition at line 51 of file DAVServerTest.php.
|
protected |
Definition at line 42 of file DAVServerTest.php.
|
protected |
Definition at line 64 of file DAVServerTest.php.
|
protected |
Definition at line 53 of file DAVServerTest.php.
|
protected |
Definition at line 91 of file DAVServerTest.php.
|
protected |
Definition at line 52 of file DAVServerTest.php.
|
protected |
Definition at line 54 of file DAVServerTest.php.
|
protected |
Definition at line 103 of file DAVServerTest.php.
|
protected |
Definition at line 47 of file DAVServerTest.php.
Referenced by Sabre\DAV\HTTPPreferParsingTest\testBrief(), Sabre\DAV\HTTPPreferParsingTest\testParseMultiple(), Sabre\DAV\HTTPPreferParsingTest\testParseSimple(), Sabre\DAV\HTTPPreferParsingTest\testParseValue(), Sabre\DAV\HTTPPreferParsingTest\testParseWeirdValue(), and Sabre\CalDAV\SharingPluginTest\testSetupWithoutCoreSharingPlugin().
|
protected |
Definition at line 23 of file DAVServerTest.php.
|
protected |
Definition at line 21 of file DAVServerTest.php.
|
protected |
Definition at line 27 of file DAVServerTest.php.
|
protected |
Definition at line 25 of file DAVServerTest.php.
|
protected |
Definition at line 24 of file DAVServerTest.php.
|
protected |
Definition at line 26 of file DAVServerTest.php.
|
protected |
Definition at line 22 of file DAVServerTest.php.
|
protected |
Definition at line 29 of file DAVServerTest.php.
|
protected |
Definition at line 28 of file DAVServerTest.php.
|
protected |
Definition at line 31 of file DAVServerTest.php.
|
protected |
Definition at line 30 of file DAVServerTest.php.
|
protected |
Definition at line 98 of file DAVServerTest.php.
|
protected |
Definition at line 48 of file DAVServerTest.php.