summaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'build/integration/features/bootstrap')
-rw-r--r--build/integration/features/bootstrap/LDAPContext.php19
1 files changed, 8 insertions, 11 deletions
diff --git a/build/integration/features/bootstrap/LDAPContext.php b/build/integration/features/bootstrap/LDAPContext.php
index 5d1f75ceff4..f23de6f47cd 100644
--- a/build/integration/features/bootstrap/LDAPContext.php
+++ b/build/integration/features/bootstrap/LDAPContext.php
@@ -23,6 +23,7 @@
*/
use Behat\Behat\Context\Context;
+use Behat\Gherkin\Node\TableNode;
class LDAPContext implements Context {
use BasicStructure;
@@ -57,17 +58,6 @@ class LDAPContext implements Context {
}
/**
- * @When /^setting "([^"]*)" of the LDAP configuration to "([^"]*)"$/
- */
- public function settingOfTheLDAPConfigurationTo($key, $value) {
- $this->sendingToWith(
- 'PUT',
- $this->apiUrl . '/' . $this->configID,
- new \Behat\Gherkin\Node\TableNode([['key', $key], ['value', $value]])
- );
- }
-
- /**
* @Given /^the response should contain a tag "([^"]*)" with value "([^"]*)"$/
*/
public function theResponseShouldContainATagWithValue($tagName, $expectedValue) {
@@ -85,4 +75,11 @@ class LDAPContext implements Context {
null
);
}
+
+ /**
+ * @Given /^setting the LDAP configuration to$/
+ */
+ public function settingTheLDAPConfigurationTo(TableNode $configData) {
+ $this->sendingToWith('PUT', $this->apiUrl . '/' . $this->configID, $configData);
+ }
}