ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Tests related to the PUT request. More...
Public Member Functions | |
setUpTree () | |
Sets up the DAV tree. More... | |
testPut () | |
A successful PUT of a new file. More... | |
testPutExisting () | |
A successful PUT on an existing file. More... | |
testPutExistingIfMatchStar () | |
PUT on existing file with If-Match: *. More... | |
testPutExistingIfMatchCorrect () | |
PUT on existing file with If-Match: with a correct etag. More... | |
testPutContentRange () | |
PUT with Content-Range should be rejected. More... | |
testPutIfNoneMatchStar () | |
PUT on non-existing file with If-None-Match: * should work. More... | |
testPutIfMatchStar () | |
PUT on non-existing file with If-Match: * should fail. More... | |
testPutExistingIfNoneMatchStar () | |
PUT on existing file with If-None-Match: * should fail. More... | |
testPutNoParent () | |
PUT thats created in a non-collection should be rejected. More... | |
testFinderPutSuccess () | |
Finder may sometimes make a request, which gets its content-body stripped. More... | |
testFinderPutFail () | |
Same as the last one, but in this case we're mimicing a failed request. More... | |
testPutIntercept () | |
Plugins can intercept PUT. More... | |
![]() | |
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) | |
Additional Inherited Members | |
![]() | |
$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... | |
Tests related to the PUT request.
Definition at line 15 of file HttpPutTest.php.
Sabre\DAV\HttpPutTest::setUpTree | ( | ) |
Sabre\DAV\HttpPutTest::testFinderPutFail | ( | ) |
Same as the last one, but in this case we're mimicing a failed request.
testFinderPutSuccess
Definition at line 307 of file HttpPutTest.php.
References $request, $response, and Sabre\DAVServerTest\request().
Sabre\DAV\HttpPutTest::testFinderPutSuccess | ( | ) |
Finder may sometimes make a request, which gets its content-body stripped.
We can't always prevent this from happening, but in some cases we can detected this and return an error instead.
testPut
Definition at line 274 of file HttpPutTest.php.
References $request, $response, Sabre\DAVServerTest\request(), and Sabre\DAV\Version\VERSION.
Sabre\DAV\HttpPutTest::testPut | ( | ) |
A successful PUT of a new file.
Definition at line 33 of file HttpPutTest.php.
References $request, $response, Sabre\DAVServerTest\request(), and Sabre\DAV\Version\VERSION.
Sabre\DAV\HttpPutTest::testPutContentRange | ( | ) |
PUT with Content-Range should be rejected.
testPut
Definition at line 159 of file HttpPutTest.php.
References $request, $response, and Sabre\DAVServerTest\request().
Sabre\DAV\HttpPutTest::testPutExisting | ( | ) |
A successful PUT on an existing file.
testPut
Definition at line 62 of file HttpPutTest.php.
References $request, $response, Sabre\DAVServerTest\request(), and Sabre\DAV\Version\VERSION.
Sabre\DAV\HttpPutTest::testPutExistingIfMatchCorrect | ( | ) |
PUT on existing file with If-Match: with a correct etag.
testPutExisting
Definition at line 125 of file HttpPutTest.php.
References $request, $response, Sabre\DAVServerTest\request(), and Sabre\DAV\Version\VERSION.
Sabre\DAV\HttpPutTest::testPutExistingIfMatchStar | ( | ) |
PUT on existing file with If-Match: *.
testPutExisting
Definition at line 91 of file HttpPutTest.php.
References $request, $response, Sabre\DAVServerTest\request(), and Sabre\DAV\Version\VERSION.
Sabre\DAV\HttpPutTest::testPutExistingIfNoneMatchStar | ( | ) |
PUT on existing file with If-None-Match: * should fail.
testPut
Definition at line 232 of file HttpPutTest.php.
References $request, $response, and Sabre\DAVServerTest\request().
Sabre\DAV\HttpPutTest::testPutIfMatchStar | ( | ) |
PUT on non-existing file with If-Match: * should fail.
testPut
Definition at line 212 of file HttpPutTest.php.
References $request, $response, and Sabre\DAVServerTest\request().
Sabre\DAV\HttpPutTest::testPutIfNoneMatchStar | ( | ) |
PUT on non-existing file with If-None-Match: * should work.
testPut
Definition at line 178 of file HttpPutTest.php.
References $request, $response, Sabre\DAVServerTest\request(), and Sabre\DAV\Version\VERSION.
Sabre\DAV\HttpPutTest::testPutIntercept | ( | ) |
Plugins can intercept PUT.
We need to make sure that works.
testPut
Definition at line 327 of file HttpPutTest.php.
References $request, $response, Sabre\DAVServerTest\request(), and Sabre\DAV\Version\VERSION.
Sabre\DAV\HttpPutTest::testPutNoParent | ( | ) |
PUT thats created in a non-collection should be rejected.
testPut
Definition at line 253 of file HttpPutTest.php.
References $request, $response, and Sabre\DAVServerTest\request().