/** * Tests if a job can be retrieved based on its id. */ public function testRetrieveJob() { $flow = new Flow('test-flow'); $job1 = new TestJob('test-job-1', null); $flow->addJob($job1); $this->assertEquals(null, $flow->getJobById('non-existent-job')); $this->assertEquals($job1, $flow->getJobById('test-job-1')); }