Skip to content

A free open source IT asset/license management system

Pass order to api in test

Marcus Moore54663d3342ab
diff --git a/tests/Feature/Components/Api/ComponentFileTest.php b/tests/Feature/Components/Api/ComponentFileTest.php
index c8bc8b6fe9..5ad99e0ee7 100644
--- a/tests/Feature/Components/Api/ComponentFileTest.php
+++ b/tests/Feature/Components/Api/ComponentFileTest.php
@@ -132,7 +132,7 @@ class ComponentFileTest extends TestCase
// List the files to get the file ID
$result = $this->actingAsForApi($user)
->getJson(
- route('api.files.index', ['object_type' => 'components', 'id' => $component->id])
+ route('api.files.index', ['object_type' => 'components', 'id' => $component->id, 'order' => 'asc'])
)
->assertOk()
->assertJsonStructure(
@@ -214,4 +214,4 @@ class ComponentFileTest extends TestCase
]
);
}
-}
\ No newline at end of file
+}