From 04e3e7df7c119061f7d65c4c4e4c4e27cf33394c Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 5 Aug 2026 22:54:32 +0100 Subject: [PATCH] Aaaand one more test --- tests/Feature/Assets/Api/AssignedComponentsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Feature/Assets/Api/AssignedComponentsTest.php b/tests/Feature/Assets/Api/AssignedComponentsTest.php index bea323d11c..03fecfb7a4 100644 --- a/tests/Feature/Assets/Api/AssignedComponentsTest.php +++ b/tests/Feature/Assets/Api/AssignedComponentsTest.php @@ -129,7 +129,7 @@ class AssignedComponentsTest extends TestCase public function test_show_asset_with_components_true_query_omits_components_when_denied(): void { $asset = Asset::factory()->create(); - $component = Component::factory()->create(['name' => 'Hidden CPU', 'purchase_cost' => 500]); + $component = Component::factory()->withInitialAcquisition(null, 500.0)->create(['name' => 'Hidden CPU']); $component->assets()->attach($component->id, [ 'component_id' => $component->id, 'assigned_qty' => 3,