Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] add function to get faked events #50905

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

browner12
Copy link
Contributor

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

browner12 and others added 2 commits April 3, 2024 11:59
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
@taylorotwell taylorotwell merged commit b206204 into laravel:11.x Apr 5, 2024
17 of 28 checks passed
@browner12 browner12 deleted the AB-view-pushed-events branch April 5, 2024 14:52
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.

None yet

2 participants