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:
authorGretaD <gretadoci@gmail.com>2021-03-25 18:56:27 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-05-28 12:40:16 +0300
commit969b1c775dfb49a6547e0cd663279fb38ada9cfb (patch)
treeaac9626c8cadf60dcf18e2f78249734f5183189a /tests
parent58d8feb6efa1dc2b73ab54f6d756b2b989f22518 (diff)
Tagging UI
Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: GretaD <gretadoci@gmail.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Controller/PageControllerTest.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/Unit/Controller/PageControllerTest.php b/tests/Unit/Controller/PageControllerTest.php
index 0d861fe71..90f6a0741 100644
--- a/tests/Unit/Controller/PageControllerTest.php
+++ b/tests/Unit/Controller/PageControllerTest.php
@@ -28,6 +28,7 @@ use OCA\Mail\Account;
use OCA\Mail\Contracts\IUserPreferences;
use OCA\Mail\Controller\PageController;
use OCA\Mail\Db\Mailbox;
+use OCA\Mail\Db\TagMapper;
use OCA\Mail\Service\AccountService;
use OCA\Mail\Service\AliasesService;
use OCA\Mail\Service\MailManager;
@@ -75,6 +76,9 @@ class PageControllerTest extends TestCase {
/** @var MailManager|MockObject */
private $mailManager;
+ /** @var TagMapper|MockObject */
+ private $tagMapper;
+
/** @var IInitialState|MockObject */
private $initialState;
@@ -97,6 +101,7 @@ class PageControllerTest extends TestCase {
$this->userSession = $this->createMock(IUserSession::class);
$this->preferences = $this->createMock(IUserPreferences::class);
$this->mailManager = $this->createMock(MailManager::class);
+ $this->tagMapper = $this->createMock(TagMapper::class);
$this->initialState = $this->createMock(IInitialState::class);
$this->logger = $this->createMock(LoggerInterface::class);
@@ -111,6 +116,7 @@ class PageControllerTest extends TestCase {
$this->userSession,
$this->preferences,
$this->mailManager,
+ $this->tagMapper,
$this->initialState,
$this->logger
);
@@ -213,12 +219,13 @@ class PageControllerTest extends TestCase {
->with($this->equalTo('jane'), $this->equalTo('settings'),
$this->equalTo('email'), $this->equalTo(''))
->will($this->returnValue('jane@doe.cz'));
- $this->initialState->expects($this->exactly(5))
+ $this->initialState->expects($this->exactly(6))
->method('provideInitialState')
->withConsecutive(
['debug', true],
['accounts', $accountsJson],
['account-settings', []],
+ ['tags', []],
['prefill_displayName', 'Jane Doe'],
['prefill_email', 'jane@doe.cz']
);