16 lines
355 B
PHP
16 lines
355 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\Accessories\Api;
|
|
|
|
use App\Models\User;
|
|
use Tests\TestCase;
|
|
|
|
class StoreAccessoryTest extends TestCase
|
|
{
|
|
public function testPermissionRequiredToStoreAccessory()
|
|
{
|
|
$this->actingAsForApi(User::factory()->create())
|
|
->postJson(route('api.accessories.store'))
|
|
->assertForbidden();
|
|
}
|
|
}
|