get(route('dashboard')); $response->assertRedirect(route('login')); } public function test_authenticated_users_can_visit_the_dashboard(): void { $user = User::factory()->create(); $this->actingAs($user); $response = $this->get(route('dashboard')); $response->assertOk(); } }