Skip to content

Commit c228d87

Browse files
committed
adapt tests to change in PHPUnit latest
1 parent 518ef3e commit c228d87

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Foundation/Testing/TestResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ protected function jsonSearchStrings($key, $value)
568568
public function assertJsonStructure(array $structure = null, $responseData = null)
569569
{
570570
if (is_null($structure)) {
571-
return $this->assertJson($this->json());
571+
return $this->assertExactJson($this->json());
572572
}
573573

574574
if (is_null($responseData)) {

tests/Foundation/FoundationTestResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function testAssertJsonWithMixed()
154154

155155
$resource = new JsonSerializableMixedResourcesStub;
156156

157-
$response->assertJson($resource->jsonSerialize());
157+
$response->assertExactJson($resource->jsonSerialize());
158158
}
159159

160160
public function testAssertJsonFragment()

0 commit comments

Comments
 (0)