diff options
author | Anna Larch <anna@nextcloud.com> | 2021-07-02 12:53:24 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-07-02 18:14:55 +0300 |
commit | a8ee2220f326853cc2c21eefd7f22e6f4fdeb758 (patch) | |
tree | 8e730b00f881a7b39c5b1d1fbba63df9e44b5294 /tests | |
parent | f4ba6d8b35f7351a9f5b89b3bf0286c3d37f4f48 (diff) |
Toggle auto tagging for classified messages
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/Controller/PageControllerTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Unit/Controller/PageControllerTest.php b/tests/Unit/Controller/PageControllerTest.php index 90f6a0741..0d9b95015 100644 --- a/tests/Unit/Controller/PageControllerTest.php +++ b/tests/Unit/Controller/PageControllerTest.php @@ -126,13 +126,14 @@ class PageControllerTest extends TestCase { $account1 = $this->createMock(Account::class); $account2 = $this->createMock(Account::class); $mailbox = $this->createMock(Mailbox::class); - $this->preferences->expects($this->exactly(4)) + $this->preferences->expects($this->exactly(5)) ->method('getPreference') ->willReturnMap([ ['account-settings', '[]', json_encode([])], ['external-avatars', 'true', 'true'], ['reply-mode', 'top', 'bottom'], ['collect-data', 'true', 'true'], + ['tag-classified-messages', 'true', 'true'], ]); $this->accountService->expects($this->once()) ->method('findByUserId') @@ -237,6 +238,7 @@ class PageControllerTest extends TestCase { 'reply-mode' => 'bottom', 'app-version' => '1.2.3', 'collect-data' => 'true', + 'tag-classified-messages' => 'true', ]); $csp = new ContentSecurityPolicy(); $csp->addAllowedFrameDomain('\'self\''); |