|
|
@ -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); |
|
|
|