aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap/WebDav.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-04-08 17:06:53 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-05-02 09:31:22 +0200
commit0eed6b518967868f7837225be1db0f698c09b685 (patch)
treefe3b02cfd4c2bf8b2b977ed17671cd38f526663b /build/integration/features/bootstrap/WebDav.php
parent8486926a147ad767d2ac8957512142f8a4873fa7 (diff)
downloadnextcloud-server-0eed6b518967868f7837225be1db0f698c09b685.tar.gz
nextcloud-server-0eed6b518967868f7837225be1db0f698c09b685.zip
Integration test for a disabled user
Diffstat (limited to 'build/integration/features/bootstrap/WebDav.php')
-rw-r--r--build/integration/features/bootstrap/WebDav.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/WebDav.php b/build/integration/features/bootstrap/WebDav.php
index 79c447ac573..cd9584ad186 100644
--- a/build/integration/features/bootstrap/WebDav.php
+++ b/build/integration/features/bootstrap/WebDav.php
@@ -424,5 +424,15 @@ trait WebDav {
}
+ /**
+ * @Given /^Downloading file "([^"]*)" as "([^"]*)"$/
+ */
+ public function downloadingFileAs($fileName, $user) {
+ try {
+ $this->response = $this->makeDavRequest($user, 'GET', $fileName, []);
+ } catch (\GuzzleHttp\Exception\ServerException $ex) {
+ $this->response = $ex->getResponse();
+ }
+ }
}