Laravel - HTTP Tests - Assert Session Has Errors In
Assert that the session contains an error for the given $keys
within a specific error bag. If $keys
is an associative array, assert that the session contains a specific error message (value) for each field (key), within the error bag:
$response->assertSessionHasErrorsIn($errorBag, $keys = [], $format = null);