protected function execute(InputInterface $input, OutputInterface $output) { $jobId = $input->getArgument('job-id'); $this->metro->retry($jobId); }
function it_can_retry_jobs(ConsumableQueue $metro) { $metro->retry('123')->shouldBeCalled(); $output = $this->execute(['job-id' => '123']); expect($output->fetch())->toEqual(''); }