mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-28 23:19:42 -08:00
20 lines
411 B
PHP
20 lines
411 B
PHP
<?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();
|
|
}
|
|
}
|