ran = true;
}
}
class QueuedJobTest extends \Test\TestCase {
private DummyJobList $jobList;
protected function setUp(): void {
parent::setUp();
$this->jobList = new DummyJobList();
}
public function testJobShouldBeRemovedNew(): void {
$job = new TestQueuedJobNew(\OCP\Server::get(ITimeFactory::class));
$job->setId(42);
$this->jobList->add($job);
$this->assertTrue($this->jobList->has($job, null));
$job->start($this->jobList);
$this->assertTrue($job->ran);
}
}
ue='3rdparty-aws-diet'>3rdparty-aws-diet
blob: be0b7e52fe08e559e9b738a3b4abffe06a997779 (
plain)