public function testpostponeJobAndMark_deleted() { $schedulersJob = new SchedulersJob(); $result = $schedulersJob->postponeJob('test message', 1); $this->assertEquals(true, $result); //test for record ID to verify that record is saved $this->assertTrue(isset($schedulersJob->id)); $this->assertEquals(36, strlen($schedulersJob->id)); //verify the related attributes $this->assertEquals(SchedulersJob::JOB_STATUS_QUEUED, $schedulersJob->status); $this->assertEquals(SchedulersJob::JOB_PARTIAL, $schedulersJob->resolution); //test mark deleted method and verify record doesn't exist after deletion $schedulersJob->mark_deleted($schedulersJob->id); $result = $schedulersJob->retrieve($schedulersJob->id); $this->assertEquals(null, $result); }