test: Sort the reactions before comparing

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2025-05-14 11:42:52 +02:00
parent df94cceb7b
commit 7304756e03
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0

View file

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