Skip to content

A free open source IT asset/license management system

Aaaand one more test

snipe04e3e7df7c11
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,