diff options
Diffstat (limited to 'tests/Unit/Controller/MessagesControllerTest.php')
-rw-r--r-- | tests/Unit/Controller/MessagesControllerTest.php | 4 |
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); |