snipe-it/tests/Feature/DashboardTest.php
2024-08-06 20:25:22 +00:00

17 lines
339 B
PHP

<?php
namespace Tests\Feature;
use App\Models\User;
use Tests\TestCase;
final class DashboardTest extends TestCase
{
public function testUsersWithoutAdminAccessAreRedirected(): void
{
$this->actingAs(User::factory()->create())
->get(route('home'))
->assertRedirect(route('view-assets'));
}
}