diff --git a/tests/Functional/Search/Modifier/FullTextSearch/FullTextSearchTest.php b/tests/Functional/Search/Modifier/FullTextSearch/FullTextSearchTest.php index dd9f1ed1..a295c1a5 100644 --- a/tests/Functional/Search/Modifier/FullTextSearch/FullTextSearchTest.php +++ b/tests/Functional/Search/Modifier/FullTextSearch/FullTextSearchTest.php @@ -208,7 +208,7 @@ public function testFullTextSearch(): void ->createAssetSearch() ->addModifier(new FullTextSearch('asset')) ; - $this->assertEquals([$asset->getId(), $asset2->getId()], $searchService->search($assetSearch)->getIds()); + $this->assertIdArrayEquals([$asset->getId(), $asset2->getId()], $searchService->search($assetSearch)->getIds()); $assetSearch = $searchProvider ->createAssetSearch() @@ -216,4 +216,11 @@ public function testFullTextSearch(): void ; $this->assertEquals([$asset2->getId()], $searchService->search($assetSearch)->getIds()); } + + private function assertIdArrayEquals(array $ids1, array $ids2) + { + sort($ids1); + sort($ids2); + $this->assertEquals($ids1, $ids2); + } }