]> source.dussan.org Git - nextcloud-server.git/commitdiff
JobTest: Remove outdated tests 39473/head
authorMarcel Klehr <mklehr@gmx.net>
Thu, 27 Jul 2023 11:45:34 +0000 (13:45 +0200)
committerMarcel Klehr <mklehr@gmx.net>
Fri, 28 Jul 2023 09:12:32 +0000 (11:12 +0200)
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
tests/lib/BackgroundJob/JobTest.php

index ca9d68f0a2b4c04bf270483a79f2231671c4d8ea..a4e0dcf4fd63ba935f6b18962e9adc08625d6ac0 100644 (file)
@@ -61,58 +61,6 @@ class JobTest extends \Test\TestCase {
                $this->assertCount(1, $jobList->getAll());
        }
 
-       public function testDisallowParallelRunsWithNoOtherJobs() {
-               $jobList = new DummyJobList();
-               $job = new TestJob($this->timeFactory, $this, function () {
-               });
-               $job->setAllowParallelRuns(false);
-               $jobList->add($job);
-
-               $jobList->setHasReservedJob(null, false);
-               $jobList->setHasReservedJob(TestJob::class, false);
-               $job->start($jobList);
-               $this->assertTrue($this->run);
-       }
-
-       public function testAllowParallelRunsWithNoOtherJobs() {
-               $jobList = new DummyJobList();
-               $job = new TestJob($this->timeFactory, $this, function () {
-               });
-               $job->setAllowParallelRuns(true);
-               $jobList->add($job);
-
-               $jobList->setHasReservedJob(null, false);
-               $jobList->setHasReservedJob(TestJob::class, false);
-               $job->start($jobList);
-               $this->assertTrue($this->run);
-       }
-
-       public function testAllowParallelRunsWithOtherJobs() {
-               $jobList = new DummyJobList();
-               $job = new TestJob($this->timeFactory, $this, function () {
-               });
-               $job->setAllowParallelRuns(true);
-               $jobList->add($job);
-
-               $jobList->setHasReservedJob(null, true);
-               $jobList->setHasReservedJob(TestJob::class, true);
-               $job->start($jobList);
-               $this->assertTrue($this->run);
-       }
-
-       public function testDisallowParallelRunsWithOtherJobs() {
-               $jobList = new DummyJobList();
-               $job = new TestJob($this->timeFactory, $this, function () {
-               });
-               $job->setAllowParallelRuns(false);
-               $jobList->add($job);
-
-               $jobList->setHasReservedJob(null, true);
-               $jobList->setHasReservedJob(TestJob::class, true);
-               $job->start($jobList);
-               $this->assertFalse($this->run);
-       }
-
        public function markRun() {
                $this->run = true;
        }