aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap/ShareesContext.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-02-09 13:19:39 +0100
committerRobin Appelman <robin@icewind.nl>2018-02-09 17:13:30 +0100
commit359ccbc023ce134c828a620fb6f7e70e886e5e44 (patch)
treec801d4ab01cbe61f0fee3f327ff564e83e783413 /build/integration/features/bootstrap/ShareesContext.php
parent97b44605f4d38a1742cf95204ed6b5e9ca0d6951 (diff)
downloadnextcloud-server-359ccbc023ce134c828a620fb6f7e70e886e5e44.tar.gz
nextcloud-server-359ccbc023ce134c828a620fb6f7e70e886e5e44.zip
Adjust integration tests to new guzzle
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'build/integration/features/bootstrap/ShareesContext.php')
-rw-r--r--build/integration/features/bootstrap/ShareesContext.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/integration/features/bootstrap/ShareesContext.php b/build/integration/features/bootstrap/ShareesContext.php
index f659495fcae..24b413ec091 100644
--- a/build/integration/features/bootstrap/ShareesContext.php
+++ b/build/integration/features/bootstrap/ShareesContext.php
@@ -23,7 +23,7 @@
*/
use Behat\Behat\Context\Context;
use Behat\Behat\Context\SnippetAcceptingContext;
-use GuzzleHttp\Message\ResponseInterface;
+use Psr\Http\Message\ResponseInterface;
require __DIR__ . '/../../vendor/autoload.php';
@@ -72,7 +72,7 @@ class ShareesContext implements Context, SnippetAcceptingContext {
}
public function getArrayOfShareesResponded(ResponseInterface $response, $shareeType) {
- $elements = $response->xml()->data;
+ $elements = simplexml_load_string($response->getBody())->data;
$elements = json_decode(json_encode($elements), 1);
if (strpos($shareeType, 'exact ') === 0) {
$elements = $elements['exact'];