mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-29 07:29:44 -08:00
3e832e5e94
This reverts commit 95516b0343
.
17 lines
327 B
PHP
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'));
|
|
}
|
|
}
|