mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 01:24:06 -08:00
20 lines
400 B
PHP
20 lines
400 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\Feature;
|
||
|
|
||
|
use App\Models\User;
|
||
|
use Tests\Support\InteractsWithSettings;
|
||
|
use Tests\TestCase;
|
||
|
|
||
|
class DashboardTest extends TestCase
|
||
|
{
|
||
|
use InteractsWithSettings;
|
||
|
|
||
|
public function testUsersWithoutAdminAccessAreRedirected()
|
||
|
{
|
||
|
$this->actingAs(User::factory()->create())
|
||
|
->get(route('home'))
|
||
|
->assertRedirect(route('view-assets'));
|
||
|
}
|
||
|
}
|