Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCyrille Bollu <cyr.debian@bollu.be>2020-11-03 20:17:44 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-11-04 12:47:46 +0300
commit1072c67f0677ac28b51736f5f133fc3413f819e9 (patch)
tree512dbc82440fb50800eaf100d5b4cd438800cdab /tests
parent4bb17e9c6877591ca5777d8e591de648a93ec877 (diff)
Fix to https://github.com/nextcloud/mail/issues/3956
Is it me or did the 'read flag' got renamed from 'unseen' to 'seen'? Signed-off-by: Cyrille Bollu <cyr.debian@bollu.be> Co-Authored-By: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Controller/MessagesControllerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/Controller/MessagesControllerTest.php b/tests/Unit/Controller/MessagesControllerTest.php
index 6636bfaa1..409497b0c 100644
--- a/tests/Unit/Controller/MessagesControllerTest.php
+++ b/tests/Unit/Controller/MessagesControllerTest.php
@@ -412,7 +412,7 @@ class MessagesControllerTest extends TestCase {
$mailboxId = 987;
$id = 123;
$flags = [
- 'unseen' => false
+ 'seen' => false
];
$message = new \OCA\Mail\Db\Message();
$message->setUid(444);
@@ -434,7 +434,7 @@ class MessagesControllerTest extends TestCase {
->will($this->returnValue($this->account));
$this->mailManager->expects($this->once())
->method('flagMessage')
- ->with($this->account, 'INBOX', 444, 'unseen', false);
+ ->with($this->account, 'INBOX', 444, 'seen', false);
$expected = new JSONResponse();
$response = $this->controller->setFlags(