summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/LockingTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/tests/LockingTest.php')
-rw-r--r--apps/files_sharing/tests/LockingTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/LockingTest.php b/apps/files_sharing/tests/LockingTest.php
index c6a799f64a6..680220e5fa5 100644
--- a/apps/files_sharing/tests/LockingTest.php
+++ b/apps/files_sharing/tests/LockingTest.php
@@ -29,6 +29,7 @@ namespace OCA\Files_Sharing\Tests;
use OC\Files\Filesystem;
use OC\Files\View;
use OCP\Lock\ILockingProvider;
+use OCP\Share\IShare;
/**
* Class LockingTest
@@ -63,7 +64,7 @@ class LockingTest extends TestCase {
$fileId = Filesystem::getFileInfo('/foo/bar.txt')->getId();
$this->share(
- \OCP\Share::SHARE_TYPE_USER,
+ IShare::TYPE_USER,
'/foo/bar.txt',
$this->ownerUid,
$this->recipientUid,
@@ -79,7 +80,7 @@ class LockingTest extends TestCase {
parent::tearDown();
}
-
+
public function testLockAsRecipient() {
$this->expectException(\OCP\Lock\LockedException::class);