Code Duplication    Length = 6-6 lines in 2 locations

tests/controller/accountscontrollertest.php 2 locations

@@ 235-240 (lines=6) @@
232
			->method('find')
233
			->with($this->userId, $this->accountId)
234
			->will($this->returnValue($account));
235
		if ($isUnifiedInbox) {
236
			$this->unifiedAccount->expects($this->once())
237
				->method('resolve')
238
				->with($messageId)
239
				->will($this->returnValue([$this->account, $folderId, $messageId]));
240
		}
241
242
		if ($isReply) {
243
			$message = $this->getMockBuilder('OCA\Mail\Model\ReplyMessage')
@@ 344-349 (lines=6) @@
341
			->method('find')
342
			->with($this->userId, $this->accountId)
343
			->will($this->returnValue($account));
344
		if ($isUnifiedInbox) {
345
			$this->unifiedAccount->expects($this->once())
346
				->method('resolve')
347
				->with($messageId)
348
				->will($this->returnValue([$this->account]));
349
		}
350
351
		$message = $this->getMockBuilder('OCA\Mail\Model\Message')
352
			->disableOriginalConstructor()