From 3b7b4055f1a76c45d15477bb7ae71adf136f3257 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Thu, 24 Oct 2024 20:09:27 +0100 Subject: [PATCH] test: prevent false negatives --- .../tests/integration/api/tags/ListWithFulltextSearchTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/tags/tests/integration/api/tags/ListWithFulltextSearchTest.php b/extensions/tags/tests/integration/api/tags/ListWithFulltextSearchTest.php index dd3c9daf1..2317cdaa3 100644 --- a/extensions/tags/tests/integration/api/tags/ListWithFulltextSearchTest.php +++ b/extensions/tags/tests/integration/api/tags/ListWithFulltextSearchTest.php @@ -53,7 +53,7 @@ class ListWithFulltextSearchTest extends TestCase $data = json_decode($contents = $response->getBody()->getContents(), true)['data'] ?? []; $this->assertEquals(200, $response->getStatusCode(), $contents); - $this->assertEquals($expected, Arr::pluck($data, 'id')); + $this->assertEqualsCanonicalizing($expected, Arr::pluck($data, 'id')); } public static function searchDataProvider(): array