mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-15 01:54:09 -08:00
17 lines
355 B
PHP
17 lines
355 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\Feature\Accessories\Api;
|
||
|
|
||
|
use App\Models\User;
|
||
|
use Tests\TestCase;
|
||
|
|
||
|
class AccessoryStoreTest extends TestCase
|
||
|
{
|
||
|
public function testPermissionRequiredToStoreAccessory()
|
||
|
{
|
||
|
$this->actingAsForApi(User::factory()->create())
|
||
|
->postJson(route('api.accessories.store'))
|
||
|
->assertForbidden();
|
||
|
}
|
||
|
}
|