summaryrefslogtreecommitdiffstats
path: root/tests/lib/BackgroundJob/TestJob.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/BackgroundJob/TestJob.php')
-rw-r--r--tests/lib/BackgroundJob/TestJob.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/lib/BackgroundJob/TestJob.php b/tests/lib/BackgroundJob/TestJob.php
index e15c7e86c99..cc7a4651c4b 100644
--- a/tests/lib/BackgroundJob/TestJob.php
+++ b/tests/lib/BackgroundJob/TestJob.php
@@ -8,7 +8,9 @@
namespace Test\BackgroundJob;
-class TestJob extends \OC\BackgroundJob\Job {
+use OCP\AppFramework\Utility\ITimeFactory;
+
+class TestJob extends \OCP\BackgroundJob\Job {
private $testCase;
/**
@@ -20,7 +22,8 @@ class TestJob extends \OC\BackgroundJob\Job {
* @param JobTest $testCase
* @param callable $callback
*/
- public function __construct($testCase = null, $callback = null) {
+ public function __construct(ITimeFactory $time = null, $testCase = null, $callback = null) {
+ parent::__construct($time ?? \OC::$server->get(ITimeFactory::class));
$this->testCase = $testCase;
$this->callback = $callback;
}