summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php')
-rw-r--r--apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php b/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php
index 3de40215f15..0a39246e030 100644
--- a/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php
+++ b/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php
@@ -27,7 +27,6 @@
namespace OCA\Files_Sharing\Tests;
use OCA\Files_Sharing\DeleteOrphanedSharesJob;
-use OCP\AppFramework\Utility\ITimeFactory;
use OCP\Share\IShare;
/**
@@ -94,7 +93,7 @@ class DeleteOrphanedSharesJobTest extends \Test\TestCase {
\OC::registerShareHooks(\OC::$server->getSystemConfig());
- $this->job = new DeleteOrphanedSharesJob(\OCP\Server::get(ITimeFactory::class));
+ $this->job = \OCP\Server::get(DeleteOrphanedSharesJob::class);
}
protected function tearDown(): void {