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
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Controller/MessagesControllerTest.php')
-rw-r--r--tests/Unit/Controller/MessagesControllerTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Unit/Controller/MessagesControllerTest.php b/tests/Unit/Controller/MessagesControllerTest.php
index af0d15faa..ae04047bc 100644
--- a/tests/Unit/Controller/MessagesControllerTest.php
+++ b/tests/Unit/Controller/MessagesControllerTest.php
@@ -185,7 +185,7 @@ class MessagesControllerTest extends TestCase {
\OC::$server->offsetSet(ITimeFactory::class, $this->oldFactory);
}
- public function testGetHtmlBody() {
+ public function testGetHtmlBody(): void {
$accountId = 17;
$mailboxId = 13;
$folderId = 'testfolder';
@@ -244,7 +244,9 @@ class MessagesControllerTest extends TestCase {
$policy->disallowFontDomain('\'self\'');
$policy->disallowMediaDomain('\'self\'');
$expectedPlainResponse->setContentSecurityPolicy($policy);
+ $expectedPlainResponse->cacheFor(60 * 60, false, true);
$expectedRichResponse->setContentSecurityPolicy($policy);
+ $expectedRichResponse->cacheFor(60 * 60, false, true);
$actualPlainResponse = $this->controller->getHtmlBody($messageId, true);
$actualRichResponse = $this->controller->getHtmlBody($messageId, false);