Skip to content

A free open source IT asset/license management system

Added action_type to tests

snipe5020aec71a7f
diff --git a/tests/Feature/Assets/Api/AssetHistoryTest.php b/tests/Feature/Assets/Api/AssetHistoryTest.php
index 4f61934405..079f52063c 100644
--- a/tests/Feature/Assets/Api/AssetHistoryTest.php
+++ b/tests/Feature/Assets/Api/AssetHistoryTest.php
@@ -62,7 +62,7 @@ class AssetHistoryTest extends TestCase
$viewer = User::factory()->viewAssets()->viewAssetHistory()->create();
$response = $this->actingAsForApi($viewer)
- ->getJson(route('api.assets.history', $asset->id))
+ ->getJson(route('api.assets.history', ['asset' => $asset->id, 'action_type' => 'update']))
->assertOk()
->assertJsonPath('total', 1);