Skip to content

Commit

Permalink
Minor code style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rogyar authored Sep 29, 2018
1 parent c65b5a4 commit 828e742
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ValidatorResultMergerTest extends \PHPUnit\Framework\TestCase
protected function setUp()
{
$this->validatorResultFactoryMock = $this->getMockBuilder(ValidatorResultInterfaceFactory::class)
->setMethods(['create'])->disableOriginalConstructor()->getMock();
->setMethods(['create'])->disableOriginalConstructor()->getMock();
$this->objectManager = new ObjectManager($this);
$this->validatorResultMerger = $this->objectManager->getObject(
ValidatorResultMerger::class,
Expand All @@ -64,7 +64,7 @@ public function testMerge()
$validatorResultMock = $this->createMock(ValidatorResultInterface::class);
$validationResult = $this->createMock(ValidatorResultInterface::class);
$cmValidationResult = $this->createMock(ValidatorResultInterface::class);
$itemsValidationMessages = [['test04', 'test05'], ['test06']];
$validationMessages = [['test04', 'test05'], ['test06']];
$this->validatorResultFactoryMock->expects($this->once())->method('create')
->willReturn($validatorResultMock);
$validationResult->expects($this->once())->method('getMessages')->willReturn(['test01', 'test02']);
Expand All @@ -80,7 +80,7 @@ public function testMerge()
$actual = $this->validatorResultMerger->merge(
$validationResult,
$cmValidationResult,
...$itemsValidationMessages
...$validationMessages
);
$this->assertEquals($expected, $actual);
}
Expand Down

0 comments on commit 828e742

Please sign in to comment.