From 7304756e03a11f64b2203ce6ba524bf91b9f0a75 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 14 May 2025 11:42:52 +0200 Subject: test: Sort the reactions before comparing Signed-off-by: Joas Schilling --- tests/lib/Comments/ManagerTest.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/lib') diff --git a/tests/lib/Comments/ManagerTest.php b/tests/lib/Comments/ManagerTest.php index c187f664215..fb2f913f291 100644 --- a/tests/lib/Comments/ManagerTest.php +++ b/tests/lib/Comments/ManagerTest.php @@ -1107,6 +1107,10 @@ class ManagerTest extends TestCase { $row->getMessage(), ]; }, $all); + + usort($actual, static fn (array $a, array $b): int => $a[1] <=> $b[1]); + usort($expected, static fn (array $a, array $b): int => $a[1] <=> $b[1]); + $this->assertEqualsCanonicalizing($expected, $actual); } -- cgit v1.2.3