Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information