Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/BackgroundJob/DummyJobList.php')
-rw-r--r--tests/lib/BackgroundJob/DummyJobList.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/BackgroundJob/DummyJobList.php b/tests/lib/BackgroundJob/DummyJobList.php
index be9c06257b7..4d14ed9e7db 100644
--- a/tests/lib/BackgroundJob/DummyJobList.php
+++ b/tests/lib/BackgroundJob/DummyJobList.php
@@ -33,7 +33,7 @@ class DummyJobList extends \OC\BackgroundJob\JobList {
public function add($job, $argument = null): void {
if (is_string($job)) {
/** @var IJob $job */
- $job = new $job;
+ $job = \OCP\Server::get($job);
}
$job->setArgument($argument);
if (!$this->has($job, null)) {