From 70ee68f755bcebf1b2ef18a4876183e7b5d857e6 Mon Sep 17 00:00:00 2001 From: Linus Metzler Date: Thu, 5 Oct 2017 14:44:09 +0200 Subject: [PATCH] fix the test --- tests/Adapter/GuzzleTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Adapter/GuzzleTest.php b/tests/Adapter/GuzzleTest.php index a5e16e0..ba4d58e 100644 --- a/tests/Adapter/GuzzleTest.php +++ b/tests/Adapter/GuzzleTest.php @@ -58,7 +58,7 @@ class GuzzleTest extends TestCase $this->assertEquals("application/json", $headers["Content-Type"][0]); $body = json_decode($response->getBody()); - $this->assertEquals("Testing a PUT request.", json_decode($body->json)->{"X-Put-Test"}); + $this->assertEquals("Testing a PUT request.", $body->json->{"X-Put-Test"}); } public function testPatch() @@ -73,7 +73,7 @@ class GuzzleTest extends TestCase $this->assertEquals("application/json", $headers["Content-Type"][0]); $body = json_decode($response->getBody()); - $this->assertEquals("Testing a PATCH request.", json_decode($body->json)->{"X-Patch-Test"}); + $this->assertEquals("Testing a PATCH request.", $body->json->{"X-Patch-Test"}); } public function testDelete()