actingAs($this->user); $this->post(route('logout'))->assertRedirect('/'); $this->assertFalse(auth()->check()); } public function test_user_still_logged_in(): void { $this->actingAs($this->user); $this->get(route('login'))->assertRedirect(route('servers')); $this->assertTrue(auth()->check()); } }