A free open source IT asset/license management system
adds permission test
spencerrlongg75532d96622f
diff --git a/tests/Feature/Api/Assets/AssetStoreTest.php b/tests/Feature/Api/Assets/AssetStoreTest.phpnew file mode 100644index 0000000000..5a68aebccb--- /dev/null+++ b/tests/Feature/Api/Assets/AssetStoreTest.php@@ -0,0 +1,19 @@+<?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();+ }+}