diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2018-08-01 09:46:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 09:46:37 +0300 |
commit | bbd1e9a0606811179b4442a35f8cc2db7e9864da (patch) | |
tree | f492300b0541e80abe580d30a9fdcd9c10b54be4 /tests | |
parent | c4156ee9ff64a08fab574f9241e6252240af85c7 (diff) | |
parent | 26242e95213ce72ae9dcac75d706b70d8c9570bb (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.php | 5 |
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')) { |