@@ 238-243 (lines=6) @@ | ||
235 | ->method('find') |
|
236 | ->with($this->userId, $this->accountId) |
|
237 | ->will($this->returnValue($account)); |
|
238 | if ($isUnifiedInbox) { |
|
239 | $this->unifiedAccount->expects($this->once()) |
|
240 | ->method('resolve') |
|
241 | ->with($messageId) |
|
242 | ->will($this->returnValue([$this->account, $folderId, $messageId])); |
|
243 | } |
|
244 | ||
245 | if ($isReply) { |
|
246 | $message = $this->getMockBuilder('OCA\Mail\Model\ReplyMessage') |
|
@@ 357-362 (lines=6) @@ | ||
354 | ->method('find') |
|
355 | ->with($this->userId, $this->accountId) |
|
356 | ->will($this->returnValue($account)); |
|
357 | if ($isUnifiedInbox) { |
|
358 | $this->unifiedAccount->expects($this->once()) |
|
359 | ->method('resolve') |
|
360 | ->with($messageId) |
|
361 | ->will($this->returnValue([$this->account])); |
|
362 | } |
|
363 | ||
364 | $message = $this->getMockBuilder('OCA\Mail\Model\Message') |
|
365 | ->disableOriginalConstructor() |