39 $request =
new HTTP\Request(
'DELETE',
'/file1');
46 "Incorrect status code. Response body: " .
$response->getBodyAsString()
52 'Content-Length' => [
'0'],
64 $request =
new HTTP\Request(
'DELETE',
'/dir');
71 "Incorrect status code. Response body: " .
$response->getBodyAsString()
77 'Content-Length' => [
'0'],
89 $request =
new HTTP\Request(
'DELETE',
'/file2');
95 "Incorrect status code. Response body: " .
$response->getBodyAsString()
105 $request =
new HTTP\Request(
'DELETE',
'/file1', [
106 'If-Match' =>
'"' . md5(
'foo') .
'"',
114 "Incorrect status code. Response body: " .
$response->getBodyAsString()
124 $request =
new HTTP\Request(
'DELETE',
'/file1', [
125 'If-Match' =>
'"' . md5(
'bar') .
'"',
133 "Incorrect status code. Response body: " .
$response->getBodyAsString()
testDeleteNotFound()
DELETE on a node that does not exist.
testDeletePreconditionsFailed()
DELETE with incorrect preconditions.
foreach($paths as $path) $request
testDeletePreconditions()
DELETE with preconditions.
testDeleteDirectory()
Deleting a Directory.
const VERSION
Full version number.
Tests related to the PUT request.
This class may be used as a basis for other webdav-related unittests.
request($request, $expectedStatus=null)
Makes a request, and returns a response object.
testDelete()
A successful DELETE.
setUpTree()
Sets up the DAV tree.