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 <christoph@winzerhof-wurst.at>2018-07-30 09:49:09 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-07-30 09:49:09 +0300
commit26242e95213ce72ae9dcac75d706b70d8c9570bb (patch)
tree4d315bc043e2b046584814291c67969c718cdc2b /tests
parent365f4b28996b5a2ca4072f8096bc2e7a0c7791d7 (diff)
Fix HTML body in mocked message
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/Controller/MessagesControllerTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Controller/MessagesControllerTest.php b/tests/Controller/MessagesControllerTest.php
index 2eaa06e35..36eac5779 100644
--- a/tests/Controller/MessagesControllerTest.php
+++ b/tests/Controller/MessagesControllerTest.php
@@ -119,6 +119,9 @@ 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('');