aboutsummaryrefslogtreecommitdiffstats
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.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php b/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php
index e0d2d67d45f..a35642b0793 100644
--- a/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php
+++ b/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php
@@ -6,7 +6,10 @@
*/
namespace OCA\Files_Sharing\Tests;
+use OC\Files\Filesystem;
use OCA\Files_Sharing\DeleteOrphanedSharesJob;
+use OCP\Constants;
+use OCP\Server;
use OCP\Share\IShare;
/**
@@ -48,7 +51,7 @@ class DeleteOrphanedSharesJobTest extends \Test\TestCase {
$appManager->disableApp('files_trashbin');
// just in case...
- \OC\Files\Filesystem::getLoader()->removeStorageWrapper('oc_trashbin');
+ Filesystem::getLoader()->removeStorageWrapper('oc_trashbin');
}
public static function tearDownAfterClass(): void {
@@ -73,7 +76,7 @@ class DeleteOrphanedSharesJobTest extends \Test\TestCase {
\OC::registerShareHooks(\OC::$server->getSystemConfig());
- $this->job = \OCP\Server::get(DeleteOrphanedSharesJob::class);
+ $this->job = Server::get(DeleteOrphanedSharesJob::class);
}
protected function tearDown(): void {
@@ -119,7 +122,7 @@ class DeleteOrphanedSharesJobTest extends \Test\TestCase {
$share->setNode($testSubFolder)
->setShareType(IShare::TYPE_USER)
- ->setPermissions(\OCP\Constants::PERMISSION_READ)
+ ->setPermissions(Constants::PERMISSION_READ)
->setSharedWith($this->user2)
->setSharedBy($this->user1);