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>2021-05-28 11:24:58 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-05-28 11:24:58 +0300
commit720e3ed992c1753455e07b313e07a58ae85eed24 (patch)
treedbfa23e39d431b23ef7d5c63d50d9109ec495135 /tests
parent6f7699ca773dd212532869e56cea17aa08a7d7d5 (diff)
Fix the page controller test after #5075
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Controller/PageControllerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/Controller/PageControllerTest.php b/tests/Unit/Controller/PageControllerTest.php
index 837a97623..0d861fe71 100644
--- a/tests/Unit/Controller/PageControllerTest.php
+++ b/tests/Unit/Controller/PageControllerTest.php
@@ -116,17 +116,17 @@ class PageControllerTest extends TestCase {
);
}
- public function testIndex() {
+ public function testIndex(): void {
$account1 = $this->createMock(Account::class);
$account2 = $this->createMock(Account::class);
$mailbox = $this->createMock(Mailbox::class);
$this->preferences->expects($this->exactly(4))
->method('getPreference')
->willReturnMap([
+ ['account-settings', '[]', json_encode([])],
['external-avatars', 'true', 'true'],
['reply-mode', 'top', 'bottom'],
['collect-data', 'true', 'true'],
- ['account-settings', null, json_encode([])],
]);
$this->accountService->expects($this->once())
->method('findByUserId')