summaryrefslogtreecommitdiffstats
path: root/build/integration/features
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-08-12 23:12:42 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-08-12 23:49:59 +0200
commit24ef41454c59ebd17b2fceb336c2a690a854377b (patch)
tree8862e66fd87fc10d6b7d325d4778851f02c70ba1 /build/integration/features
parent919c7b853191ee3a657d68c346e764645dd172aa (diff)
downloadnextcloud-server-24ef41454c59ebd17b2fceb336c2a690a854377b.tar.gz
nextcloud-server-24ef41454c59ebd17b2fceb336c2a690a854377b.zip
don't add new LDAP configs if one is already present
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'build/integration/features')
-rw-r--r--build/integration/features/bootstrap/LDAPContext.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/build/integration/features/bootstrap/LDAPContext.php b/build/integration/features/bootstrap/LDAPContext.php
index 671dab37675..ee7acab6f5f 100644
--- a/build/integration/features/bootstrap/LDAPContext.php
+++ b/build/integration/features/bootstrap/LDAPContext.php
@@ -32,6 +32,14 @@ class LDAPContext implements Context {
protected $apiUrl;
+ /** @AfterScenario */
+ public function teardown() {
+ if($this->configID === null) {
+ return;
+ }
+ $this->sendingTo('DELETE', $this->apiUrl . '/' . $this->configID);
+ }
+
/**
* @Given /^the response should contain a tag "([^"]*)"$/
*/
@@ -173,7 +181,6 @@ class LDAPContext implements Context {
$uidsFound++;
}
}
- error_log('result array ' . json_encode($extractedIDsArray)); ## TODO remove debug statement
Assert::assertSame((int)$expectedCount, $uidsFound);
}