snipe-it/tests/Feature/Accessories/Api/StoreAccessoryTest.php

17 lines
355 B
PHP
Raw Normal View History

<?php
namespace Tests\Feature\Accessories\Api;
use App\Models\User;
use Tests\TestCase;
2024-09-09 14:36:32 -07:00
class StoreAccessoryTest extends TestCase
{
public function testPermissionRequiredToStoreAccessory()
{
$this->actingAsForApi(User::factory()->create())
->postJson(route('api.accessories.store'))
->assertForbidden();
}
}