We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BadMethodCallException is thrown when assertStatus(422) is used. There's a leftover after refactoring done in #38088 :
assertStatus(422)
protected function statusMessageWithException($expected, $actual, $exception) { if ($exception instanceof ValidationException) { return $this->statusMessageWithValidationErrors($expected, $actual, $exception); }
Apparently statusMessageWithValidationErrors method was removed but I think forgotten here..
statusMessageWithValidationErrors
Create a unit test and check for 422 status:
$this->post('/some-endpoint', ['foo' => 'bar'])->assertStatus(422);
The text was updated successfully, but these errors were encountered:
fixed cde3662
Sorry, something went wrong.
No branches or pull requests
Description:
BadMethodCallException is thrown when
assertStatus(422)
is used. There's a leftover after refactoring done in #38088 :Apparently
statusMessageWithValidationErrors
method was removed but I think forgotten here..Steps To Reproduce:
Create a unit test and check for 422 status:
$this->post('/some-endpoint', ['foo' => 'bar'])->assertStatus(422);
The text was updated successfully, but these errors were encountered: