Skip to content
Snippets Groups Projects
Commit 13d772e2 authored by Maddy Chellathurai's avatar Maddy Chellathurai
Browse files

MAGETWO-52000: [Github][PR]impossible to see what is wrong with cron -...

MAGETWO-52000: [Github][PR]impossible to see what is wrong with cron - unhelpful error message #3189

- updating test
parent 08088d28
No related merge requests found
......@@ -45,6 +45,10 @@ class JobSetCacheTest extends \PHPUnit_Framework_TestCase
new InputArgument('types', InputArgument::REQUIRED),
new InputArgument('command', InputArgument::REQUIRED),
]);
$inputDef = $this->getMock('\Symfony\Component\Console\Input\InputDefinition', [], [], '', false);
$inputDef->expects($this->any())->method('hasArgument')->willReturn(true);
$command->expects($this->any())->method('getDefinition')->willReturn($inputDef);
$command->expects($this->any())->method('setDefinition')->with($definition);
$model = new JobSetCache($command, $objectManagerProvider, $output, $status, $jobName, $params);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment