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
Disable transaction events in DatabaseTransactions
This follows commit deafaa7
which already added this for RefreshDatabase.
It's for the exact same reason as outlined in laravel#23832 :
> This is motivated by the fact that in tests, when using the RefreshDatabase trait, transactions events are dispatched and may interfer with the application testing itself when it relies on events like these ( for further info, see laravel/ideas#1094 ).
As to not have custom handling of transaction events interfere with the
test suite itself, this simply disables this.
Again, the same change was added to `RefreshDatabase` and is still
present; this PR merely keeps the behaviour of them in sync in regards
to the handling of events in transactions.
0 commit comments