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:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-12-09 17:47:06 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-12-17 15:39:35 +0300
commit0a251646ab6ad002c6dadfc6e54e631e03b84f04 (patch)
treebdd9bdfcdee00134d92e9d6e6bac473471fd5472 /tests
parent1e6856f30e966d25f2bb75ceed5da4d87b58ca67 (diff)
Make it possible to change the order of accounts
Co-authored-by: GretaD <gretadoci@gmail.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/Integration/Db/MailAccountMapperTest.php2
-rw-r--r--tests/Integration/Db/MailAccountTest.php3
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/Integration/Db/MailAccountMapperTest.php b/tests/Integration/Db/MailAccountMapperTest.php
index 467af1e59..8c2a5792a 100644
--- a/tests/Integration/Db/MailAccountMapperTest.php
+++ b/tests/Integration/Db/MailAccountMapperTest.php
@@ -67,6 +67,8 @@ class MailAccountMapperTest extends TestCase {
$this->account->setOutboundSslMode('ssl');
$this->account->setUserId('user12345');
$this->account->setEditorMode('plaintext');
+ $this->account->setProvisioned(false);
+ $this->account->setOrder(27);
}
public function testFind(){
diff --git a/tests/Integration/Db/MailAccountTest.php b/tests/Integration/Db/MailAccountTest.php
index d61b9c68e..9fed44f0d 100644
--- a/tests/Integration/Db/MailAccountTest.php
+++ b/tests/Integration/Db/MailAccountTest.php
@@ -44,6 +44,7 @@ class MailAccountTest extends TestCase {
$a->setOutboundSslMode('ssl');
$a->setEditorMode('html');
$a->setProvisioned(false);
+ $a->setOrder(13);
$this->assertEquals(array(
'accountId' => 12345,
@@ -60,6 +61,7 @@ class MailAccountTest extends TestCase {
'signature' => null,
'editorMode' => 'html',
'provisioned' => false,
+ 'order' => 13,
), $a->toJson());
}
@@ -79,6 +81,7 @@ class MailAccountTest extends TestCase {
'signature' => null,
'editorMode' => null,
'provisioned' => false,
+ 'order' => null,
];
$a = new MailAccount($expected);
// TODO: fix inconsistency