create(); $this->actingAs($user) ->post(route('verification.send')) ->assertRedirect(route('dashboard', absolute: false)); } public function test_unverified_user_gets_notification(): void { $user = User::factory()->unverified()->create(); $this->actingAs($user) ->post(route('verification.send')) ->assertSessionHas('status', 'verification-link-sent'); } }