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