Laravel 5.7.22 Released

Laravel 5.7.22 Released

The Laravel team released 5.7.22 yesterday with miscellaneous fixes and changes.

A fix was added for the TestResponse::assertJsonValidationErrors() when there are no errors. Previously, this assertion would throw an ErrorException if no errors key were present in the response.

Next, the TestResponse::assertJsonMissingValidationErrors() method is allowed to be called without an argument:

$this->post(route('api.users.store'), $data)
    ->assertJsonMissingValidationErrors()
    ->assertStatus(201);

If the test has validation errors in this case, they are now printed to the console with a helpful error message.

Next, the Vue frontend preset stubs got Laravel Mix v4 comparability updates.

Along with the Vue preset, the React preset was updated to use the @babel/preset-react package which is a required dependency.

The last change is using config to resolve the database value during tests.

You can see the full list of fixes below, and the whole diff between 5.7.21 and 5.7.22 on GitHub. The full release notes for Laravel 5.7 are available in the GitHub 5.7 changelog:

v5.7.22

Fixed

  • Fixed TestResponse::assertJsonValidationErrors() when there are no errors (#27190)

Changed

  • Allowed TestResponse::assertJsonMissingValidationErrors() to be called without an argument (#27176)
  • Updated Vue preset’s vue-stubs for laravel-mix 4 compatibility (#27229)
  • Updated preset to use @babel/preset-react (#27235)
  • Used config to resolve the database value during tests. (#27240)


Filed in: News / Releases


Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Web Application Developer
Independence, Ohio or Remote - US Based Only
Hurricane Labs
Graduate / Junior PHP Developer
Leamington Spa, Warwick
Synchro
Laravel Developer
Remote - US only
Pleio
Web Application Developer
Cleveland, OH
PS Lifestyle
Full-Stack Developer
Tampa, FL / Remote
Nu Image Medical
PHP Developer
Remote
X-Team
Full-Stack Developer
Sioux Falls, SD or Remote
Electric Pulp