mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-03 09:57:45 -08:00
20 lines
443 B
PHP
20 lines
443 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\Feature\Accessories\Api;
|
||
|
|
||
|
use App\Models\Accessory;
|
||
|
use App\Models\User;
|
||
|
use Tests\TestCase;
|
||
|
|
||
|
class AccessoryShowTest extends TestCase
|
||
|
{
|
||
|
public function testPermissionRequiredToShowAccessory()
|
||
|
{
|
||
|
$accessory = Accessory::factory()->create();
|
||
|
|
||
|
$this->actingAsForApi(User::factory()->create())
|
||
|
->getJson(route('api.accessories.show', $accessory))
|
||
|
->assertForbidden();
|
||
|
}
|
||
|
}
|