snipe-it/tests/Feature/Accessories/Api/StoreAccessoryTest.php
2024-09-09 14:36:32 -07:00

17 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();
}
}