Skip to content

Commit

Permalink
Update authentication tests to assert redirects instead of no content
Browse files Browse the repository at this point in the history
  • Loading branch information
abdessamadbettal committed Dec 6, 2024
1 parent fb06a6c commit 55e923e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Feature/Auth/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
]);

$this->assertAuthenticated();
$response->assertNoContent();
$response->assertRedirect('/dashboard');
});

test('users can not authenticate with invalid password', function () {
Expand All @@ -31,5 +31,5 @@
$response = $this->actingAs($user)->post('/logout');

$this->assertGuest();
$response->assertNoContent();
$response->assertRedirect('/');
});

0 comments on commit 55e923e

Please sign in to comment.