summaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap/Auth.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-04-11 01:30:32 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-04-11 01:39:54 +0200
commitb882f65fbb408aaf820bdd37420efb1dcbbfaba3 (patch)
tree7a1d60fbf1624e96739291aab06863333bc0b720 /build/integration/features/bootstrap/Auth.php
parentaacbb560ae5bbae3541e901915937cc3384353ef (diff)
downloadnextcloud-server-b882f65fbb408aaf820bdd37420efb1dcbbfaba3.tar.gz
nextcloud-server-b882f65fbb408aaf820bdd37420efb1dcbbfaba3.zip
Add integration tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'build/integration/features/bootstrap/Auth.php')
-rw-r--r--build/integration/features/bootstrap/Auth.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/Auth.php b/build/integration/features/bootstrap/Auth.php
index fd1b2e05a80..7addcab5f97 100644
--- a/build/integration/features/bootstrap/Auth.php
+++ b/build/integration/features/bootstrap/Auth.php
@@ -22,6 +22,7 @@
use GuzzleHttp\Client;
use GuzzleHttp\Exception\ClientException;
+use GuzzleHttp\Exception\ServerException;
use GuzzleHttp\Cookie\CookieJar;
require __DIR__ . '/../../vendor/autoload.php';
@@ -68,6 +69,8 @@ trait Auth {
$this->response = $this->client->send($request);
} catch (ClientException $ex) {
$this->response = $ex->getResponse();
+ } catch (ServerException $ex) {
+ $this->response = $ex->getResponse();
}
}