diff options
Diffstat (limited to 'build/integration/features/bootstrap/LDAPContext.php')
-rw-r--r-- | build/integration/features/bootstrap/LDAPContext.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/integration/features/bootstrap/LDAPContext.php b/build/integration/features/bootstrap/LDAPContext.php index 237f316674f..3a9c59b52b4 100644 --- a/build/integration/features/bootstrap/LDAPContext.php +++ b/build/integration/features/bootstrap/LDAPContext.php @@ -35,7 +35,7 @@ class LDAPContext implements Context { * @Given /^the response should contain a tag "([^"]*)"$/ */ public function theResponseShouldContainATag($arg1) { - $configID = $this->response->xml()->data[0]->$arg1; + $configID = simplexml_load_string($this->response->getBody())->data[0]->$arg1; PHPUnit_Framework_Assert::assertInstanceOf(SimpleXMLElement::class, $configID[0]); } @@ -45,7 +45,7 @@ class LDAPContext implements Context { public function creatingAnLDAPConfigurationAt($apiUrl) { $this->apiUrl = $apiUrl; $this->sendingToWith('POST', $this->apiUrl, null); - $configElements = $this->response->xml()->data[0]->configID; + $configElements = simplexml_load_string($this->response->getBody())->data[0]->configID; $this->configID = $configElements[0]; } @@ -60,7 +60,7 @@ class LDAPContext implements Context { * @Given /^the response should contain a tag "([^"]*)" with value "([^"]*)"$/ */ public function theResponseShouldContainATagWithValue($tagName, $expectedValue) { - $data = $this->response->xml()->data[0]->$tagName; + $data = simplexml_load_string($this->response->getBody())->data[0]->$tagName; PHPUnit_Framework_Assert::assertEquals($expectedValue, $data[0]); } |