Skip to content

Commit

Permalink
Merge pull request #6 from abdessamadbettal/test
Browse files Browse the repository at this point in the history
Update authentication tests to assert redirects instead of no content
  • Loading branch information
abdessamadbettal authored Dec 6, 2024
2 parents fb06a6c + 55e923e commit 3b6a049
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 3b6a049

Please sign in to comment.