mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
test: Sort the reactions before comparing
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
df94cceb7b
commit
7304756e03
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue