rm a couple unnecessary

This commit is contained in:
spencerrlongg 2024-03-20 15:36:53 -05:00
parent e7b9903341
commit 8cc1397ace

View file

@ -9,8 +9,6 @@ use App\Models\Location;
use App\Models\Statuslabel; use App\Models\Statuslabel;
use App\Models\Supplier; use App\Models\Supplier;
use App\Models\User; use App\Models\User;
// TODO: DELETE INTERACTSWITHSETTINGS BEFORE FINAL PR
use Tests\Support\InteractsWithSettings; use Tests\Support\InteractsWithSettings;
use Tests\TestCase; use Tests\TestCase;
@ -108,9 +106,6 @@ class AssetUpdateTest extends TestCase
{ {
$asset = Asset::factory()->laptopMbp()->noPurchaseOrEolDate()->create(); $asset = Asset::factory()->laptopMbp()->noPurchaseOrEolDate()->create();
$this->settings->enableAutoIncrement();
$this->actingAsForApi(User::factory()->editAssets()->create()) $this->actingAsForApi(User::factory()->editAssets()->create())
->patchJson((route('api.assets.update', $asset->id)), [ ->patchJson((route('api.assets.update', $asset->id)), [
'purchase_date' => '2021-01-01', 'purchase_date' => '2021-01-01',
@ -128,8 +123,6 @@ class AssetUpdateTest extends TestCase
{ {
$asset = Asset::factory()->laptopMbp()->noPurchaseOrEolDate()->create(); $asset = Asset::factory()->laptopMbp()->noPurchaseOrEolDate()->create();
$this->settings->enableAutoIncrement();
$this->actingAsForApi(User::factory()->editAssets()->create()) $this->actingAsForApi(User::factory()->editAssets()->create())
->patchJson(route('api.assets.update', $asset->id), [ ->patchJson(route('api.assets.update', $asset->id), [
'name' => 'test asset', 'name' => 'test asset',