summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-07-27 13:45:34 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-07-28 11:44:39 +0000
commit070533efa9a68f48edf4d2e3681a4d1d93208887 (patch)
tree91198a0940d1ea1449ea18c98c009aa207a9dff9 /tests
parentc92baafc0f7da1a6f10a5e1f2a08b779ad1a0dbc (diff)
downloadnextcloud-server-070533efa9a68f48edf4d2e3681a4d1d93208887.tar.gz
nextcloud-server-070533efa9a68f48edf4d2e3681a4d1d93208887.zip
JobTest: Remove outdated tests
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/BackgroundJob/JobTest.php52
1 files changed, 0 insertions, 52 deletions
diff --git a/tests/lib/BackgroundJob/JobTest.php b/tests/lib/BackgroundJob/JobTest.php
index ca9d68f0a2b..a4e0dcf4fd6 100644
--- a/tests/lib/BackgroundJob/JobTest.php
+++ b/tests/lib/BackgroundJob/JobTest.php
@@ -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;
}