Skip to content

A free open source IT asset/license management system

Narrowed test

snipe6c6199add857
diff --git a/tests/Feature/Reporting/ActivityReportTest.php b/tests/Feature/Reporting/ActivityReportTest.php
index 658710f8ef..8a9f4832a4 100644
--- a/tests/Feature/Reporting/ActivityReportTest.php
+++ b/tests/Feature/Reporting/ActivityReportTest.php
@@ -90,8 +90,10 @@ class ActivityReportTest extends TestCase
// I don't love this, since it doesn't test that we're actually storing the company ID appropriately
// but it's better than what we had
- $response = $this->actingAsForApi($userInCompanyA)
- ->getJson(route('api.activity.index'))
+ $this->actingAsForApi($userInCompanyA)
+ ->getJson(route('api.activity.index', [
+ 'action_type' => 'update',
+ ]))
->assertOk()
->assertJsonStructure([
'rows',
@@ -100,7 +102,9 @@ class ActivityReportTest extends TestCase
$this->actingAsForApi($userInCompanyB)
->getJson(
- route('api.activity.index'))
+ route('api.activity.index', [
+ 'action_type' => 'update',
+ ]))
->assertOk()
->assertJsonStructure([
'rows',