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