Skip to content

Commit

Permalink
Merge pull request #40 from CodeWithDennis/add-missing-tests
Browse files Browse the repository at this point in the history
Refactor user logout test to use Filament helper methods
  • Loading branch information
CodeWithDennis authored Oct 30, 2024
2 parents c0cc194 + 9ad8e1f commit af57859
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Feature/Filament/Pages/Auth/LoginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
});

0 comments on commit af57859

Please sign in to comment.