Code Duplication    Length = 6-6 lines in 2 locations

tests/controller/accountscontrollertest.php 2 locations

@@ 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')
@@ 347-352 (lines=6) @@
344
			->method('find')
345
			->with($this->userId, $this->accountId)
346
			->will($this->returnValue($account));
347
		if ($isUnifiedInbox) {
348
			$this->unifiedAccount->expects($this->once())
349
				->method('resolve')
350
				->with($messageId)
351
				->will($this->returnValue([$this->account]));
352
		}
353
354
		$message = $this->getMockBuilder('OCA\Mail\Model\Message')
355
			->disableOriginalConstructor()