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
However fails due to the required event not firing. Hacky solution is to implement this in tests which would prevent your package being added to a more established project due to the requirement of refactoring tests (stops you package being as "drop in" as you'd like).
Looks like using dedicated Event classes may be a solution (altering the definition of the vent on the model) but I didn't have time to validate. At the very least this should be mentioned in the documentation.
The text was updated successfully, but these errors were encountered:
In a test, you'd expect the following to work (
L8
)Event::fake(); $user = User::factory()->create([ 'email_verified_at' => null, ]);
However fails due to the required event not firing. Hacky solution is to implement this in tests which would prevent your package being added to a more established project due to the requirement of refactoring tests (stops you package being as "drop in" as you'd like).
Looks like using dedicated Event classes may be a solution (altering the definition of the vent on the model) but I didn't have time to validate. At the very least this should be mentioned in the documentation.
The text was updated successfully, but these errors were encountered: