Skip to content

[5.6] Add assertion to verify there are no errors - #24308

Merged
taylorotwell merged 1 commit into
laravel:5.6from
mnabialek:add-no-errors-assertions
May 25, 2018
Merged

[5.6] Add assertion to verify there are no errors#24308
taylorotwell merged 1 commit into
laravel:5.6from
mnabialek:add-no-errors-assertions

Conversation

@mnabialek

Copy link
Copy Markdown
Contributor

This allows to verify if there are errors without looking at Framework details. Now inside assertSessionHasErrors(), there is call:

$this->assertSessionHas('errors');

but if you want to make sure there are no errors, you need to really know that there shouldn't be errors key in session. After adding this method you don't need to care how it's implemented any more.

@taylorotwell
taylorotwell merged commit a3d99ca into laravel:5.6 May 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants