Code Duplication    Length = 6-6 lines in 2 locations

tests/controller/accountscontrollertest.php 2 locations

@@ 258-263 (lines=6) @@
255
			->method('find')
256
			->with($this->userId, $this->accountId)
257
			->will($this->returnValue($account));
258
		if ($isUnifiedInbox) {
259
			$this->unifiedAccount->expects($this->once())
260
				->method('resolve')
261
				->with($messageId)
262
				->will($this->returnValue([$this->account, $folderId, $messageId]));
263
		}
264
265
		if ($isReply) {
266
			$message = $this->getMockBuilder('OCA\Mail\Model\ReplyMessage')
@@ 385-390 (lines=6) @@
382
			->method('find')
383
			->with($this->userId, $this->accountId)
384
			->will($this->returnValue($account));
385
		if ($isUnifiedInbox) {
386
			$this->unifiedAccount->expects($this->once())
387
				->method('resolve')
388
				->with($messageId)
389
				->will($this->returnValue([$this->account]));
390
		}
391
392
		$message = $this->getMockBuilder('OCA\Mail\Model\Message')
393
			->disableOriginalConstructor()