Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorSergio Bertolin <sbertolin@solidgear.es>2016-11-16 12:07:18 +0300
committerSergio Bertolin <sbertolin@solidgear.es>2016-11-16 12:07:18 +0300
commitf6d1e52ecc57a312ce6986670579725d9f283a96 (patch)
treefc237dda5ba850c0ec777b2bc399eed47c900c80 /build
parent0ed3bb4f92a5cd4010bf2a195332c5145b09315b (diff)
Added missing requirements
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/bootstrap/WebDav.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/build/integration/features/bootstrap/WebDav.php b/build/integration/features/bootstrap/WebDav.php
index bba1bc9ccda..04519c539b3 100644
--- a/build/integration/features/bootstrap/WebDav.php
+++ b/build/integration/features/bootstrap/WebDav.php
@@ -263,7 +263,7 @@ trait WebDav {
*/
public function asTheFileOrFolderDoesNotExist($user, $entry, $path) {
$client = $this->getSabreClient($user);
- $response = $client->request('HEAD', $this->makeSabrePath($path));
+ $response = $client->request('HEAD', $this->makeSabrePath($user, $path));
if ($response['statusCode'] !== 404) {
throw new \Exception($entry . ' "' . $path . '" expected to not exist (status code ' . $response['statusCode'] . ', expected 404)');
}
@@ -358,7 +358,7 @@ trait WebDav {
];
}
- $response = $client->propfind($this->makeSabrePath($path), $properties, $folderDepth);
+ $response = $client->propfind($this->makeSabrePath($user, $path), $properties, $folderDepth);
return $response;
}
@@ -451,11 +451,12 @@ trait WebDav {
}
/**
- * @When User :user deletes file :file
+ * @When /^User "([^"]*)" deletes (file|folder) "([^"]*)"$/
* @param string $user
+ * @param string $type
* @param string $file
*/
- public function userDeletesFile($user, $file) {
+ public function userDeletesFile($user, $type, $file) {
try {
$this->response = $this->makeDavRequest($user, 'DELETE', $file, []);
} catch (\GuzzleHttp\Exception\ServerException $e) {