/** * Update job status. * * @param JobInterface $job * @param string $status * * @return JobInterface */ protected function updateStatus(JobInterface $job, $status) { $job->setStatus($status); return $this->persistAndFlush($job); }
/** * @Then the job :job should have status :status */ public function assertJobStatus(JobInterface $job, $status) { PHPUnit_Framework_Assert::assertSame($status, $job->getStatus()); }
/** * Redirect after rejecting a job. * * @param JobInterface $job */ protected function redirectAfterReject(JobInterface $job) { $this->redirect('worldia_textmaster_job_compare', ['id' => $job->getId()]); }