summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-12-05 10:41:13 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-12-05 10:41:13 +0100
commit578648a062e9cb72248a2f625ac367d19033a24e (patch)
tree3819f15ab39d5480042c71b57c9d27c2475a3ca4 /apps/files_sharing/tests
parenta0f6a6545b59b1061e96e7d17d8ec6d6f32e615e (diff)
downloadnextcloud-server-578648a062e9cb72248a2f625ac367d19033a24e.tar.gz
nextcloud-server-578648a062e9cb72248a2f625ac367d19033a24e.zip
Adapt tests to new job constructors
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r--apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php b/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php
index d2f05002a68..3de40215f15 100644
--- a/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php
+++ b/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php
@@ -27,6 +27,7 @@
namespace OCA\Files_Sharing\Tests;
use OCA\Files_Sharing\DeleteOrphanedSharesJob;
+use OCP\AppFramework\Utility\ITimeFactory;
use OCP\Share\IShare;
/**
@@ -37,7 +38,6 @@ use OCP\Share\IShare;
* @package OCA\Files_Sharing\Tests
*/
class DeleteOrphanedSharesJobTest extends \Test\TestCase {
-
/**
* @var bool
*/
@@ -94,7 +94,7 @@ class DeleteOrphanedSharesJobTest extends \Test\TestCase {
\OC::registerShareHooks(\OC::$server->getSystemConfig());
- $this->job = new DeleteOrphanedSharesJob();
+ $this->job = new DeleteOrphanedSharesJob(\OCP\Server::get(ITimeFactory::class));
}
protected function tearDown(): void {