mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-17 19:14:06 -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();
|
||
|
}
|
||
|
}
|