cleanup test

This commit is contained in:
spencerrlongg 2023-12-04 12:47:46 -06:00
parent 2d57b9399c
commit cef1c5d4d2

View file

@ -275,7 +275,7 @@ class AssetStoreTest extends TestCase
$this->settings->disableAutoIncrement();
$response1 = $this->actingAsForApi(User::factory()->superuser()->create())
$response = $this->actingAsForApi(User::factory()->superuser()->create())
->postJson(route('api.assets.store'), [
'asset_tag' => $asset_tag,
'model_id' => $model->id,
@ -285,9 +285,9 @@ class AssetStoreTest extends TestCase
->assertStatusMessageIs('success')
->json();
$asset1 = Asset::find($response1['payload']['id'])->delete();
Asset::find($response['payload']['id'])->delete();
$response2 = $this->actingAsForApi(User::factory()->superuser()->create())
$this->actingAsForApi(User::factory()->superuser()->create())
->postJson(route('api.assets.store'), [
'asset_tag' => $asset_tag,
'model_id' => $model->id,