Skip to content

Commit

Permalink
Fix excessively long variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-ch committed Sep 29, 2018
1 parent 231f097 commit c65b5a4
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ protected function setUp()
public function testMerge()
{
$validatorResultMock = $this->createMock(ValidatorResultInterface::class);
$orderValidationResultMock = $this->createMock(ValidatorResultInterface::class);
$creditmemoValidationResultMock = $this->createMock(ValidatorResultInterface::class);
$validationResult = $this->createMock(ValidatorResultInterface::class);
$cmValidationResult = $this->createMock(ValidatorResultInterface::class);
$itemsValidationMessages = [['test04', 'test05'], ['test06']];
$this->validatorResultFactoryMock->expects($this->once())->method('create')
->willReturn($validatorResultMock);
$orderValidationResultMock->expects($this->once())->method('getMessages')->willReturn(['test01', 'test02']);
$creditmemoValidationResultMock->expects($this->once())->method('getMessages')->willReturn(['test03']);
$validationResult->expects($this->once())->method('getMessages')->willReturn(['test01', 'test02']);
$cmValidationResult->expects($this->once())->method('getMessages')->willReturn(['test03']);

$validatorResultMock->expects($this->at(0))->method('addMessage')->with('test01');
$validatorResultMock->expects($this->at(1))->method('addMessage')->with('test02');
Expand All @@ -78,8 +78,8 @@ public function testMerge()
$validatorResultMock->expects($this->at(5))->method('addMessage')->with('test06');
$expected = $validatorResultMock;
$actual = $this->validatorResultMerger->merge(
$orderValidationResultMock,
$creditmemoValidationResultMock,
$validationResult,
$cmValidationResult,
...$itemsValidationMessages
);
$this->assertEquals($expected, $actual);
Expand Down

0 comments on commit c65b5a4

Please sign in to comment.