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