From faf109e0a24141f9bb7f4cee5fbb815f1f9b1169 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Mon, 17 Feb 2025 15:32:18 +0100 Subject: [PATCH] test(integration): ignore uid order in sync tests Signed-off-by: Richard Steinmetz --- tests/Integration/Sync/ImapToDbSynchronizerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Integration/Sync/ImapToDbSynchronizerTest.php b/tests/Integration/Sync/ImapToDbSynchronizerTest.php index 0554106c3d..7ac1c7aa3e 100644 --- a/tests/Integration/Sync/ImapToDbSynchronizerTest.php +++ b/tests/Integration/Sync/ImapToDbSynchronizerTest.php @@ -94,7 +94,7 @@ public function testRepairSync(): void { ); // Assert that the cached state has been reconciled with IMAP - self::assertEquals([$uid1, $uid2], $dbMessageMapper->findAllUids($inbox)); + self::assertEqualsCanonicalizing([$uid1, $uid2], $dbMessageMapper->findAllUids($inbox)); } public function testRepairSyncNoopIfNoneVanished(): void { @@ -153,6 +153,6 @@ public function testRepairSyncNoopIfNoneVanished(): void { ); // Assert that the cached state has been reconciled with IMAP - self::assertEquals([$uid1, $uid2, $uid3], $dbMessageMapper->findAllUids($inbox)); + self::assertEqualsCanonicalizing([$uid1, $uid2, $uid3], $dbMessageMapper->findAllUids($inbox)); } }