diff options
author | Sergio Bertolin <sbertolin@solidgear.es> | 2016-11-16 12:07:18 +0300 |
---|---|---|
committer | Sergio Bertolin <sbertolin@solidgear.es> | 2016-11-21 11:57:34 +0300 |
commit | d76b83ed49ebd0cf3ecd8a836d0a7820f79f1a21 (patch) | |
tree | 6cf7a9de7f0fe531a5298c3bf5a71a9a178fda2d /build | |
parent | 0819d0f0eb49a31cba4303a869cfd123c3b730b2 (diff) |
Added missing requirements
Diffstat (limited to 'build')
-rw-r--r-- | build/integration/features/bootstrap/WebDav.php | 9 |
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) { |