diff --git a/tests/Feature/PagesResponseTest.php b/tests/Feature/PagesResponseTest.php index 6cfea8d..66b1c50 100644 --- a/tests/Feature/PagesResponseTest.php +++ b/tests/Feature/PagesResponseTest.php @@ -61,6 +61,10 @@ it('shows dashboard only if logged in', function () { it('shows students index only for a user with a school', function () { // Act & Assert + get(route('students.index')) + ->assertStatus(302) + ->assertRedirect(route('home')); + $user = User::factory()->create(); $this->actingAs($user); get(route('students.index'))