get("/") ->assertRedirect(); } public function testUserIsNotRedirectedFromDashboard(): void { $user = User::factory()->create(); $this->actingAs($user) ->get("/") ->assertOk(); } public function testUserCanLogout(): void { $user = User::factory()->create(); $this->actingAs($user); $this->assertAuthenticated(); $this->post("/logout") ->assertRedirect(); $this->assertGuest(); } }