3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 11:45:36 +00:00
Files
snipe-it/tests/Feature/DashboardTest.php
2024-03-14 14:15:11 -07:00

17 lines
327 B
PHP

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