|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Tests related to the PUT request. More...
Inheritance diagram for Sabre\DAV\HttpPutTest:
Collaboration diagram for Sabre\DAV\HttpPutTest: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... | |
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) | |
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... | |
Tests related to the PUT request.
Definition at line 15 of file HttpPutTest.php.
| Sabre\DAV\HttpPutTest::setUpTree | ( | ) |
Sets up the DAV tree.
Reimplemented from Sabre\DAVServerTest.
Definition at line 22 of file HttpPutTest.php.
| Sabre\DAV\HttpPutTest::testFinderPutFail | ( | ) |
Same as the last one, but in this case we're mimicing a failed request.
@depends testFinderPutSuccess
Definition at line 307 of file HttpPutTest.php.
References $request, $response, and Sabre\DAVServerTest\request().
Here is the call graph for this function:| 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.
@depends testPut
Definition at line 274 of file HttpPutTest.php.
References $request, $response, Sabre\DAVServerTest\request(), and Sabre\DAV\Version\VERSION.
Here is the call graph for this function:| 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.
Here is the call graph for this function:| Sabre\DAV\HttpPutTest::testPutContentRange | ( | ) |
PUT with Content-Range should be rejected.
@depends testPut
Definition at line 159 of file HttpPutTest.php.
References $request, $response, and Sabre\DAVServerTest\request().
Here is the call graph for this function:| Sabre\DAV\HttpPutTest::testPutExisting | ( | ) |
A successful PUT on an existing file.
@depends testPut
Definition at line 62 of file HttpPutTest.php.
References $request, $response, Sabre\DAVServerTest\request(), and Sabre\DAV\Version\VERSION.
Here is the call graph for this function:| Sabre\DAV\HttpPutTest::testPutExistingIfMatchCorrect | ( | ) |
PUT on existing file with If-Match: with a correct etag.
@depends testPutExisting
Definition at line 125 of file HttpPutTest.php.
References $request, $response, Sabre\DAVServerTest\request(), and Sabre\DAV\Version\VERSION.
Here is the call graph for this function:| Sabre\DAV\HttpPutTest::testPutExistingIfMatchStar | ( | ) |
PUT on existing file with If-Match: *.
@depends testPutExisting
Definition at line 91 of file HttpPutTest.php.
References $request, $response, Sabre\DAVServerTest\request(), and Sabre\DAV\Version\VERSION.
Here is the call graph for this function:| Sabre\DAV\HttpPutTest::testPutExistingIfNoneMatchStar | ( | ) |
PUT on existing file with If-None-Match: * should fail.
@depends testPut
Definition at line 232 of file HttpPutTest.php.
References $request, $response, and Sabre\DAVServerTest\request().
Here is the call graph for this function:| Sabre\DAV\HttpPutTest::testPutIfMatchStar | ( | ) |
PUT on non-existing file with If-Match: * should fail.
@depends testPut
Definition at line 212 of file HttpPutTest.php.
References $request, $response, and Sabre\DAVServerTest\request().
Here is the call graph for this function:| Sabre\DAV\HttpPutTest::testPutIfNoneMatchStar | ( | ) |
PUT on non-existing file with If-None-Match: * should work.
@depends testPut
Definition at line 178 of file HttpPutTest.php.
References $request, $response, Sabre\DAVServerTest\request(), and Sabre\DAV\Version\VERSION.
Here is the call graph for this function:| Sabre\DAV\HttpPutTest::testPutIntercept | ( | ) |
Plugins can intercept PUT.
We need to make sure that works.
@depends testPut
Definition at line 327 of file HttpPutTest.php.
References $request, $response, Sabre\DAVServerTest\request(), and Sabre\DAV\Version\VERSION.
Here is the call graph for this function:| Sabre\DAV\HttpPutTest::testPutNoParent | ( | ) |
PUT thats created in a non-collection should be rejected.
@depends testPut
Definition at line 253 of file HttpPutTest.php.
References $request, $response, and Sabre\DAVServerTest\request().
Here is the call graph for this function: