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

Specify event to be faked for test #1569

Merged
merged 1 commit into from
Mar 24, 2025
Merged

Conversation

riesjart
Copy link
Contributor

@riesjart riesjart commented Mar 23, 2025

The EmailVerificationTest only depends on the Illuminate\Auth\Events\Verified event to be faked and asserted on.

In the current situation all events are being faked, this includes Eloquent model events as well. When the user fills some (required) attributes on listening to the creating model event for example, these will not be filled since User::factory()->create() will be called on the next line.

@taylorotwell taylorotwell merged commit cd85655 into laravel:5.x Mar 24, 2025
14 checks passed
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