diff --git a/tests/Feature/Controller/App/DashboardControllerTest.php b/tests/Feature/Controller/App/DashboardControllerTest.php new file mode 100644 index 00000000..dc396668 --- /dev/null +++ b/tests/Feature/Controller/App/DashboardControllerTest.php @@ -0,0 +1,33 @@ +create(); + $this->actingAs($user); + + $response = $this->get('dashboard'); + + $response->assertStatus(200) + ->assertSee('Hello ' . $user->name . '!'); + } + + public function testLoginRedirectForDashboard(): void + { + $response = $this->get('dashboard'); + + $response->assertStatus(302) + ->assertRedirect('login'); + } +}