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