Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[11.x] add function to get faked events (laravel#50905)
* add function to get faked events this function will return an array of all Events that have been faked. this can be helpful when originally writing the tests to get a grasp of which events you may need to intercept. both the `QueueFake` and `NotificationFake` have similar methods to let you see what has been intercepted by the fake. https://github.com/laravel/framework/blob/11.x/src/Illuminate/Support/Testing/Fakes/QueueFake.php#L512 https://github.com/laravel/framework/blob/11.x/src/Illuminate/Support/Testing/Fakes/NotificationFake.php#L357 * Update EventFake.php --------- Co-authored-by: Taylor Otwell <[email protected]>
- Loading branch information