diff --git a/tests/Feature/Filament/Pages/Auth/LoginTest.php b/tests/Feature/Filament/Pages/Auth/LoginTest.php index 2eb18ce..5976b8c 100644 --- a/tests/Feature/Filament/Pages/Auth/LoginTest.php +++ b/tests/Feature/Filament/Pages/Auth/LoginTest.php @@ -38,9 +38,8 @@ }); test('an authenticated user can logout', function () { - $this->get('admin') - ->assertOk(); + $this->assertAuthenticated(); - $this->post('admin/logout') + $this->post(Filament::getLogoutUrl()) ->assertRedirect(Filament::getLoginUrl()); });