Skip to content

Commit e673658

Browse files
authored
return $this for chaining (#55060)
looks like a small oversight from #54678 of which part of it was caught in #54941
1 parent 65dfe28 commit e673658

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Illuminate/Testing/TestResponse.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,8 @@ public function assertOnlyJsonValidationErrors($errors, $responseKey = 'errors')
994994
$unexpectedErrorKeys = Arr::except($jsonErrors, $expectedErrorKeys);
995995

996996
PHPUnit::withResponse($this)->assertTrue(count($unexpectedErrorKeys) === 0, 'Response has unexpected validation errors: '.collect($unexpectedErrorKeys)->keys()->map(fn ($key) => "'{$key}'")->join(', '));
997+
998+
return $this;
997999
}
9981000

9991001
/**

0 commit comments

Comments
 (0)