aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2025-05-14 11:42:52 +0200
committerJoas Schilling <coding@schilljs.com>2025-05-14 11:42:52 +0200
commit7304756e03a11f64b2203ce6ba524bf91b9f0a75 (patch)
treeadc3306ea58c89eb05f6e917870104b8763c5c40
parentdf94cceb7bc350da9860867c9aef7ba03dbb2b6c (diff)
downloadnextcloud-server-bugfix/noid/last-insert-id-when-reconnecting.tar.gz
nextcloud-server-bugfix/noid/last-insert-id-when-reconnecting.zip
test: Sort the reactions before comparingbugfix/noid/last-insert-id-when-reconnecting
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--tests/lib/Comments/ManagerTest.php4
1 files changed, 4 insertions, 0 deletions
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);
}