all
This commit is contained in:
16
Productivite/Snipe-IT/tests/Feature/DashboardTest.php
Normal file
16
Productivite/Snipe-IT/tests/Feature/DashboardTest.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?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'));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user