mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-19 01:30:50 -08:00
17 lines
360 B
PHP
17 lines
360 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\Feature\Accessories\Api;
|
||
|
|
||
|
use App\Models\User;
|
||
|
use Tests\TestCase;
|
||
|
|
||
|
class AccessoryIndexTest extends TestCase
|
||
|
{
|
||
|
public function testPermissionRequiredToViewAccessoriesIndex()
|
||
|
{
|
||
|
$this->actingAsForApi(User::factory()->create())
|
||
|
->getJson(route('api.accessories.index'))
|
||
|
->assertForbidden();
|
||
|
}
|
||
|
}
|