summaryrefslogtreecommitdiffstats
path: root/build/integration/features
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-01-19 15:19:20 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-01-19 15:19:20 +0100
commit1f7b08bd19dd37bec73903679b3e0bfdaed71927 (patch)
treebe790bbce3d66cdeb4e0137c29bcea7909a7cb89 /build/integration/features
parentf2c9d04eac7c0875040b3e46cc1dccc7d290789f (diff)
downloadnextcloud-server-1f7b08bd19dd37bec73903679b3e0bfdaed71927.tar.gz
nextcloud-server-1f7b08bd19dd37bec73903679b3e0bfdaed71927.zip
LDAP OCS Api for show config
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'build/integration/features')
-rw-r--r--build/integration/features/bootstrap/LDAPContext.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/LDAPContext.php b/build/integration/features/bootstrap/LDAPContext.php
index 3a66641685a..5d1f75ceff4 100644
--- a/build/integration/features/bootstrap/LDAPContext.php
+++ b/build/integration/features/bootstrap/LDAPContext.php
@@ -66,4 +66,23 @@ class LDAPContext implements Context {
new \Behat\Gherkin\Node\TableNode([['key', $key], ['value', $value]])
);
}
+
+ /**
+ * @Given /^the response should contain a tag "([^"]*)" with value "([^"]*)"$/
+ */
+ public function theResponseShouldContainATagWithValue($tagName, $expectedValue) {
+ $data = $this->response->xml()->data[0]->$tagName;
+ PHPUnit_Framework_Assert::assertEquals($expectedValue, $data[0]);
+ }
+
+ /**
+ * @When /^getting the LDAP configuration with showPassword "([^"]*)"$/
+ */
+ public function gettingTheLDAPConfigurationWithShowPassword($showPassword) {
+ $this->sendingToWith(
+ 'GET',
+ $this->apiUrl . '/' . $this->configID . '?showPassword=' . $showPassword,
+ null
+ );
+ }
}