mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-27 06:29:47 -08:00
8c6ecd35ec
Signed-off-by: snipe <snipe@snipe.net>
24 lines
524 B
PHP
24 lines
524 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\Licenses\Ui;
|
|
|
|
use App\Models\User;
|
|
use Tests\TestCase;
|
|
|
|
class LicenseIndexTest extends TestCase
|
|
{
|
|
public function testPermissionRequiredToViewLicenseList()
|
|
{
|
|
$this->actingAs(User::factory()->create())
|
|
->get(route('licenses.index'))
|
|
->assertForbidden();
|
|
}
|
|
|
|
public function testUserCanListLicenses()
|
|
{
|
|
$this->actingAs(User::factory()->superuser()->create())
|
|
->get(route('licenses.index'))
|
|
->assertOk();
|
|
}
|
|
}
|