Skip to content

[9.x] Fix assert that exception is thrown without message#42360

Merged
taylorotwell merged 1 commit into
laravel:9.xfrom
shaffe-fr:patch-1
May 11, 2022
Merged

[9.x] Fix assert that exception is thrown without message#42360
taylorotwell merged 1 commit into
laravel:9.xfrom
shaffe-fr:patch-1

Conversation

@shaffe-fr

@shaffe-fr shaffe-fr commented May 11, 2022

Copy link
Copy Markdown
Contributor

Hi,
This fixes #42155.
With previous implementation, no assertions were made when the specified exception is thrown but no expected message specified leading to the message "This test did not perform any assertions".

Thanks to @christophrumpel for the heads up.

@shaffe-fr shaffe-fr changed the title Assert that exception is thrown without message [9;x] Fix assert that exception is thrown without message May 11, 2022
@shaffe-fr shaffe-fr changed the title [9;x] Fix assert that exception is thrown without message [9.x] Fix assert that exception is thrown without message May 11, 2022
@shaffe-fr
shaffe-fr marked this pull request as ready for review May 11, 2022 21:31
@taylorotwell
taylorotwell merged commit 6f717ad into laravel:9.x May 11, 2022
@shaffe-fr
shaffe-fr deleted the patch-1 branch May 11, 2022 21:38
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