fix the test

This commit is contained in:
Linus Metzler
2017-10-05 14:44:09 +02:00
parent 566ab3fc70
commit 70ee68f755

View File

@@ -58,7 +58,7 @@ class GuzzleTest extends TestCase
$this->assertEquals("application/json", $headers["Content-Type"][0]); $this->assertEquals("application/json", $headers["Content-Type"][0]);
$body = json_decode($response->getBody()); $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() public function testPatch()
@@ -73,7 +73,7 @@ class GuzzleTest extends TestCase
$this->assertEquals("application/json", $headers["Content-Type"][0]); $this->assertEquals("application/json", $headers["Content-Type"][0]);
$body = json_decode($response->getBody()); $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() public function testDelete()