From c41f6663b0d98251b5d8b9a29c49ef1d5b2a37ab Mon Sep 17 00:00:00 2001 From: "Valentin F." <95174216+DevSkyLex@users.noreply.github.com> Date: Thu, 8 Oct 2026 22:27:06 +0200 Subject: [PATCH] test(inspection): assert lookup associations independently of row order --- .../Doctrine/Repository/InspectionRepositoryTest.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/Integration/Inspection/Infrastructure/Persistence/Doctrine/Repository/InspectionRepositoryTest.php b/tests/Integration/Inspection/Infrastructure/Persistence/Doctrine/Repository/InspectionRepositoryTest.php index a3eada87f..adffea15f 100644 --- a/tests/Integration/Inspection/Infrastructure/Persistence/Doctrine/Repository/InspectionRepositoryTest.php +++ b/tests/Integration/Inspection/Infrastructure/Persistence/Doctrine/Repository/InspectionRepositoryTest.php @@ -150,13 +150,9 @@ public function testFindEquipmentIdsByIdsResolvesEachRequestedInspection(): void self::SECOND_INSPECTION_ID, ]); - self::assertSame( - [ - self::INSPECTION_ID => self::EQUIPMENT_ID, - self::SECOND_INSPECTION_ID => self::SECOND_EQUIPMENT_ID, - ], - $equipmentIds, - ); + self::assertCount(2, $equipmentIds); + self::assertSame(self::EQUIPMENT_ID, $equipmentIds[self::INSPECTION_ID]); + self::assertSame(self::SECOND_EQUIPMENT_ID, $equipmentIds[self::SECOND_INSPECTION_ID]); } #[Test]