ran = true; } } class QueuedJobTest extends \Test\TestCase { private DummyJobList $jobList; protected function setUp(): void { parent::setUp(); $this->jobList = new DummyJobList(); } public function testJobShouldBeRemovedNew() { $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); } }