snipe-it/tests/Feature/Api/Assets/AssetStoreTest.php

20 lines
411 B
PHP
Raw Normal View History

2023-11-01 14:49:59 -07:00
<?php
namespace Tests\Feature\Api\Assets;
use App\Models\User;
use Tests\Support\InteractsWithSettings;
use Tests\TestCase;
class AssetStoreTest extends TestCase
{
use InteractsWithSettings;
public function testRequiresPermissionToCreateAsset()
{
$this->actingAsForApi(User::factory()->create())
->postJson(route('api.assets.store'))
->assertForbidden();
}
}