aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/CardDAV/MultiGetTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre/CardDAV/MultiGetTest.php')
-rw-r--r--vendor/sabre/dav/tests/Sabre/CardDAV/MultiGetTest.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/CardDAV/MultiGetTest.php b/vendor/sabre/dav/tests/Sabre/CardDAV/MultiGetTest.php
index 4e3276ed3..6fdfcd07a 100644
--- a/vendor/sabre/dav/tests/Sabre/CardDAV/MultiGetTest.php
+++ b/vendor/sabre/dav/tests/Sabre/CardDAV/MultiGetTest.php
@@ -36,12 +36,13 @@ class MultiGetTest extends AbstractPluginTest
$this->server->exec();
- $this->assertEquals(207, $response->status, 'Incorrect status code. Full response body:'.$response->body);
+ $bodyAsString = $response->getBodyAsString();
+ $this->assertEquals(207, $response->status, 'Incorrect status code. Full response body:'.$bodyAsString);
// using the client for parsing
$client = new DAV\Client(['baseUri' => '/']);
- $result = $client->parseMultiStatus($response->body);
+ $result = $client->parseMultiStatus($bodyAsString);
$this->assertEquals([
'/addressbooks/user1/book1/card1' => [
@@ -78,12 +79,13 @@ class MultiGetTest extends AbstractPluginTest
$this->server->exec();
- $this->assertEquals(207, $response->status, 'Incorrect status code. Full response body:'.$response->body);
+ $bodyAsString = $response->getBodyAsString();
+ $this->assertEquals(207, $response->status, 'Incorrect status code. Full response body:'.$bodyAsString);
// using the client for parsing
$client = new DAV\Client(['baseUri' => '/']);
- $result = $client->parseMultiStatus($response->body);
+ $result = $client->parseMultiStatus($bodyAsString);
$prodId = 'PRODID:-//Sabre//Sabre VObject '.\Sabre\VObject\Version::VERSION.'//EN';