Write tests - Write tests for what was done to this point that will be kept #11

Merged
okorpheus merged 61 commits from write-tests into master 2024-07-05 21:21:32 +00:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit 96e5896887 - Show all commits

View File

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