3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-27 17:55:54 +00:00
Files
snipe-it/tests/Feature/AssetModels/Ui/AssetModelIndexTest.php
2024-06-17 14:51:59 -07:00

24 lines
532 B
PHP

<?php
namespace Tests\Feature\AssetModels\Ui;
use App\Models\User;
use Tests\TestCase;
class AssetModelIndexTest extends TestCase
{
public function testPermissionRequiredToViewAssetModelList()
{
$this->actingAs(User::factory()->create())
->get(route('models.index'))
->assertForbidden();
}
public function testUserCanListAssetModels()
{
$this->actingAs(User::factory()->superuser()->create())
->get(route('models.index'))
->assertOk();
}
}