test: Sort the reactions before comparing

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/52684/head
Joas Schilling 2025-05-14 11:42:52 +07:00
parent df94cceb7b
commit 7304756e03
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
1 changed files with 4 additions and 0 deletions

@ -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);
}