new test for not found assets

This commit is contained in:
spencerrlongg 2024-03-20 13:52:22 -05:00
parent fdf0be09db
commit c155e4a7c9

View file

@ -20,6 +20,13 @@ class AssetUpdateTest extends TestCase
{
use InteractsWithSettings;
public function testThatANonExistentAssetIdReturnsError()
{
$this->actingAsForApi(User::factory()->editAssets()->createAssets()->create())
->patchJson(route('api.assets.update', 123456789))
->assertStatusMessageIs('error');
}
public function testRequiresPermissionToUpdateAsset()
{
$asset = Asset::factory()->create();