Skip to content

Commit

Permalink
Merge pull request #4 from localheinz/fix/normalize-command
Browse files Browse the repository at this point in the history
Fix: Use helper method
  • Loading branch information
localheinz authored Jan 13, 2018
2 parents de77676 + 7129dbf commit 6f1ca18
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions test/Unit/Command/NormalizeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -657,26 +657,6 @@ public function testExecuteSucceedsIfComposerLockFileExistsIsFreshComposerFileIs
->shouldBeCalled()
->willReturn($locker);

/**
* @see \Symfony\Component\Console\Tester\CommandTester::execute()
*/
$definition = $this->prophesize(Console\Input\InputDefinition::class);

$definition
->hasArgument('command')
->shouldBeCalled()
->willReturn(false);

$definition
->getArguments()
->shouldBeCalled()
->willReturn([]);

$definition
->getOptions()
->shouldBeCalled()
->willReturn([]);

$application = $this->prophesize(Application::class);

$application
Expand All @@ -687,7 +667,7 @@ public function testExecuteSucceedsIfComposerLockFileExistsIsFreshComposerFileIs
$application
->getDefinition()
->shouldBeCalled()
->willReturn($definition);
->willReturn($this->createDefinitionProphecy());

$application
->run(
Expand Down

0 comments on commit 6f1ca18

Please sign in to comment.