Skip to content

Commit

Permalink
fixup! add sorting capabilities to mail
Browse files Browse the repository at this point in the history
Signed-off-by: hamza221 <hamzamahjoubi221@gmail.com>
  • Loading branch information
hamza221 committed Nov 8, 2023
1 parent 9722ab6 commit 507a06c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/Integration/MailboxSynchronizationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ public function testSyncEmptyMailbox() {

$jsonResponse = $this->foldersController->sync(
$inbox->getId(),
[]
[],
null
);

$data = $jsonResponse->getData()->jsonSerialize();
Expand Down Expand Up @@ -136,7 +137,8 @@ public function testSyncNewMessage() {

$jsonResponse = $this->foldersController->sync(
$inbox->getId(),
[]
[],
null
);

$syncJson = $jsonResponse->getData()->jsonSerialize();
Expand Down Expand Up @@ -181,7 +183,8 @@ public function testSyncChangedMessage() {
$inbox->getId(),
[
$id
]);
],
null);
$syncJson = $jsonResponse->getData()->jsonSerialize();

self::assertCount(0, $syncJson['newMessages']);
Expand Down Expand Up @@ -222,7 +225,8 @@ public function testSyncVanishedMessage() {
$inbox->getId(),
[
$uid // This will only work if UID and database ID are equal (1 on a clean setup), otherwise this fails
]);
],
null);
$syncJson = $jsonResponse->getData()->jsonSerialize();

self::assertCount(0, $syncJson['newMessages']);
Expand Down

0 comments on commit 507a06c

Please sign in to comment.