You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing test using assertSessionHasErrors method the test will fail if you validate the request using MessageBag with your own name (not "default") even thought the validation rules are set and validation works in browser.
Description:
When doing test using
assertSessionHasErrors
method the test will fail if you validate the request using MessageBag with your own name (not "default") even thought the validation rules are set and validation works in browser.Steps To Reproduce:
In my controller in
store
method I have:When I do assert in my test file like this:
$response->assertSessionHasErrors('body');
it fails with message "Session missing error: body".
It pass when in controller I change to:
I am using named MessageBag as I have two forms on one page with textarea field (both called "body").
The text was updated successfully, but these errors were encountered: