mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 09:04:09 -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();
|
||
|
}
|
||
|
}
|