Skip to content

Commit 251dbe5

Browse files
authored
Specify event to be faked for test
1 parent 7f36b2f commit 251dbe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/pest-tests/EmailVerificationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}, 'Email verification not enabled.');
2020

2121
test('email can be verified', function () {
22-
Event::fake();
22+
Event::fake(Verified::class);
2323

2424
$user = User::factory()->create([
2525
'email_verified_at' => null,

0 commit comments

Comments
 (0)