mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
89f01d75d7
Signed-off-by: snipe <snipe@snipe.net>
24 lines
533 B
PHP
24 lines
533 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\AssetModels\Ui;
|
|
|
|
use App\Models\User;
|
|
use Tests\TestCase;
|
|
|
|
class IndexAssetModelsTest 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();
|
|
}
|
|
}
|