Fixed order location

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-07-21 22:45:17 +01:00
parent 1adc9f1aa9
commit 909c33dccf
2 changed files with 4 additions and 4 deletions

View File

@@ -103,7 +103,7 @@ class AccessoryFilesTest extends TestCase
// Upload a file
$this->actingAsForApi($user)
->post(
route('api.files.store', ['object_type' => 'accessories', 'id' => $accessory->id, 'order' => 'asc']), [
route('api.files.store', ['object_type' => 'accessories', 'id' => $accessory->id]), [
'file' => [UploadedFile::fake()->create("test.jpg", 100)],
]
)
@@ -134,7 +134,7 @@ class AccessoryFilesTest extends TestCase
// List the files to get the file ID
$result = $this->actingAsForApi($user)
->getJson(
route('api.files.index', ['object_type' => 'accessories', 'id' => $accessory->id])
route('api.files.index', ['object_type' => 'accessories', 'id' => $accessory->id, 'order' => 'asc'])
)
->assertOk()
->assertJsonStructure(

View File

@@ -103,7 +103,7 @@ class ConsumableFileTest extends TestCase
// Upload a file
$this->actingAsForApi($user)
->post(
route('api.files.store', ['object_type' => 'consumables', 'id' => $consumable->id, 'order' => 'asc']), [
route('api.files.store', ['object_type' => 'consumables', 'id' => $consumable->id]), [
'file' => [UploadedFile::fake()->create("test.jpg", 100)],
]
)
@@ -134,7 +134,7 @@ class ConsumableFileTest extends TestCase
// List the files to get the file ID
$result = $this->actingAsForApi($user)
->getJson(
route('api.files.index', ['object_type' => 'consumables', 'id' => $consumable->id])
route('api.files.index', ['object_type' => 'consumables', 'id' => $consumable->id, 'order' => 'asc'])
)
->assertOk()
->assertJsonStructure(