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 <ChristophWurst@users.noreply.github.com>2018-08-01 09:46:37 +0300
committerGitHub <noreply@github.com>2018-08-01 09:46:37 +0300
commitbbd1e9a0606811179b4442a35f8cc2db7e9864da (patch)
treef492300b0541e80abe580d30a9fdcd9c10b54be4 /tests
parentc4156ee9ff64a08fab574f9241e6252240af85c7 (diff)
parent26242e95213ce72ae9dcac75d706b70d8c9570bb (diff)
Merge pull request #997 from nextcloud/refactor/strict-http
Make OCA\Mail\Http strict
Diffstat (limited to 'tests')
-rw-r--r--tests/Controller/MessagesControllerTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/Controller/MessagesControllerTest.php b/tests/Controller/MessagesControllerTest.php
index 0c6ed89f4..36eac5779 100644
--- a/tests/Controller/MessagesControllerTest.php
+++ b/tests/Controller/MessagesControllerTest.php
@@ -119,9 +119,12 @@ class MessagesControllerTest extends TestCase {
->method('getMessage')
->with($this->equalTo($messageId))
->will($this->returnValue($this->message));
+ $this->message->expects($this->once())
+ ->method('getHtmlBody')
+ ->willReturn('');
$this->timeFactory->method('getTime')->willReturn(1000);
- $expectedResponse = new HtmlResponse(null);
+ $expectedResponse = new HtmlResponse('');
$expectedResponse->setCacheHeaders(3600, $this->timeFactory);
$expectedResponse->addHeader('Pragma', 'cache');
if (class_exists('\OCP\AppFramework\Http\ContentSecurityPolicy')) {