create([ 'email_verified_at' => null, ]); $this->actingAs($user) ->post(route('verification.send')) ->assertRedirect(route('home')); Notification::assertSentTo($user, VerifyEmail::class); }); test('does not send verification notification if email is verified', function () { Notification::fake(); $user = User::factory()->create([ 'email_verified_at' => now(), ]); $this->actingAs($user) ->post(route('verification.send')) ->assertRedirect(route('dashboard', absolute: false)); Notification::assertNothingSent(); });