Exemplo n.º 1
0
 public function testCreateJob()
 {
     $job = new Job($this->job_name, $this->job_data);
     $this->assertNull($job->getId());
     $this->assertEquals($this->job_name, $job->getClassName());
     $this->assertEquals($this->job_data, $job->getArguments());
     $this->assertLessThanOrEqual(new DateTime(), $job->getCreatedAt());
 }