Skip to content

Commit 70ee68f

Browse files
committed
fix the test
1 parent 566ab3f commit 70ee68f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Adapter/GuzzleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testPut()
5858
$this->assertEquals("application/json", $headers["Content-Type"][0]);
5959

6060
$body = json_decode($response->getBody());
61-
$this->assertEquals("Testing a PUT request.", json_decode($body->json)->{"X-Put-Test"});
61+
$this->assertEquals("Testing a PUT request.", $body->json->{"X-Put-Test"});
6262
}
6363

6464
public function testPatch()
@@ -73,7 +73,7 @@ public function testPatch()
7373
$this->assertEquals("application/json", $headers["Content-Type"][0]);
7474

7575
$body = json_decode($response->getBody());
76-
$this->assertEquals("Testing a PATCH request.", json_decode($body->json)->{"X-Patch-Test"});
76+
$this->assertEquals("Testing a PATCH request.", $body->json->{"X-Patch-Test"});
7777
}
7878

7979
public function testDelete()

0 commit comments

Comments
 (0)