public function testStatusTrackingCanBeStopped() { Status::create('test'); $status = new Status('test'); $this->assertEquals(Status::STATUS_WAITING, $status->get()); $status->stop(); $this->assertFalse($status->get()); }
/** * Return the status of the current job. * * @return int The status of the job as one of the Status constants. */ public function getStatus() { $status = new Status($this->payload['id']); return $status->get(); }