Skip to content

Commit 13d772e

Browse files
committed
MAGETWO-52000: [Github][PR]impossible to see what is wrong with cron - unhelpful error message #3189
- updating test
1 parent 08088d2 commit 13d772e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: setup/src/Magento/Setup/Test/Unit/Model/Cron/JobSetCacheTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ public function testSetCache($commandClass, $arrayInput, $jobName, $params)
4545
new InputArgument('types', InputArgument::REQUIRED),
4646
new InputArgument('command', InputArgument::REQUIRED),
4747
]);
48+
49+
$inputDef = $this->getMock('\Symfony\Component\Console\Input\InputDefinition', [], [], '', false);
50+
$inputDef->expects($this->any())->method('hasArgument')->willReturn(true);
51+
$command->expects($this->any())->method('getDefinition')->willReturn($inputDef);
4852
$command->expects($this->any())->method('setDefinition')->with($definition);
4953

5054
$model = new JobSetCache($command, $objectManagerProvider, $output, $status, $jobName, $params);

0 commit comments

Comments
 (0)