Signed-off-by: Marcel Klehr <mklehr@gmx.net>
pull/37835/head
Marcel Klehr 3 years ago
parent 5608b50778
commit a0c722ad69
  1. 8
      tests/lib/BackgroundJob/JobTest.php

@ -63,7 +63,7 @@ class JobTest extends \Test\TestCase {
public function testDisallowParallelRunsWithNoOtherJobs() { public function testDisallowParallelRunsWithNoOtherJobs() {
$jobList = new DummyJobList(); $jobList = new DummyJobList();
$job = new TestJob($this->timeFactory, $this, function() { $job = new TestJob($this->timeFactory, $this, function () {
}); });
$job->setAllowParallelRuns(false); $job->setAllowParallelRuns(false);
$jobList->add($job); $jobList->add($job);
@ -76,7 +76,7 @@ class JobTest extends \Test\TestCase {
public function testAllowParallelRunsWithNoOtherJobs() { public function testAllowParallelRunsWithNoOtherJobs() {
$jobList = new DummyJobList(); $jobList = new DummyJobList();
$job = new TestJob($this->timeFactory, $this, function() { $job = new TestJob($this->timeFactory, $this, function () {
}); });
$job->setAllowParallelRuns(true); $job->setAllowParallelRuns(true);
$jobList->add($job); $jobList->add($job);
@ -89,7 +89,7 @@ class JobTest extends \Test\TestCase {
public function testAllowParallelRunsWithOtherJobs() { public function testAllowParallelRunsWithOtherJobs() {
$jobList = new DummyJobList(); $jobList = new DummyJobList();
$job = new TestJob($this->timeFactory, $this, function() { $job = new TestJob($this->timeFactory, $this, function () {
}); });
$job->setAllowParallelRuns(true); $job->setAllowParallelRuns(true);
$jobList->add($job); $jobList->add($job);
@ -102,7 +102,7 @@ class JobTest extends \Test\TestCase {
public function testDisallowParallelRunsWithOtherJobs() { public function testDisallowParallelRunsWithOtherJobs() {
$jobList = new DummyJobList(); $jobList = new DummyJobList();
$job = new TestJob($this->timeFactory, $this, function() { $job = new TestJob($this->timeFactory, $this, function () {
}); });
$job->setAllowParallelRuns(false); $job->setAllowParallelRuns(false);
$jobList->add($job); $jobList->add($job);

Loading…
Cancel
Save