diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-04-11 18:14:28 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-08-09 23:45:11 +0200 |
commit | 4e8db8aa11ebd075d4fe4b9b5d47bc9a17dcf8b6 (patch) | |
tree | 727d947ed9724e630398315f4b620d95c45794e7 /build/integration/features/bootstrap | |
parent | a39c995083c6cec88f79558699d4d20bd66f30f2 (diff) | |
download | nextcloud-server-4e8db8aa11ebd075d4fe4b9b5d47bc9a17dcf8b6.tar.gz nextcloud-server-4e8db8aa11ebd075d4fe4b9b5d47bc9a17dcf8b6.zip |
convert LDAP offline and backup server integration tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'build/integration/features/bootstrap')
-rw-r--r-- | build/integration/features/bootstrap/LDAPContext.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/LDAPContext.php b/build/integration/features/bootstrap/LDAPContext.php index 4b9810aeff7..ce63bc3f698 100644 --- a/build/integration/features/bootstrap/LDAPContext.php +++ b/build/integration/features/bootstrap/LDAPContext.php @@ -155,4 +155,17 @@ class LDAPContext implements Context { } } } + + /** + * @Given /^Expect ServerException on failed web login as "([^"]*)"$/ + */ + public function expectServerExceptionOnFailedWebLoginAs($login) { + try { + $this->loggingInUsingWebAs($login); + } catch (\GuzzleHttp\Exception\ServerException $e) { + PHPUnit_Framework_Assert::assertEquals(500, $e->getResponse()->getStatusCode()); + return; + } + PHPUnit_Framework_Assert::assertTrue(false, 'expected Exception not received'); + } } |