Files
ad_testbed/tests/Feature/DashboardTest.php
T
Mark Gregory 35b0b82618
tests / ci (push) Canceled after 0s
Initial Commit
2026-11-11 15:51:37 +00:00

17 lines
404 B
PHP
Executable File

<?php
use App\Models\User;
test('guests are redirected to the login page', function () {
$response = $this->get(route('dashboard'));
$response->assertRedirect(route('login'));
});
test('authenticated users can visit the dashboard', function () {
$user = User::factory()->create();
$this->actingAs($user);
$response = $this->get(route('dashboard'));
$response->assertOk();
});