diff options
author | Andrew Summers <18727110+summersab@users.noreply.github.com> | 2023-08-29 18:16:45 -0500 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-03-15 13:11:33 +0100 |
commit | 45eb4a839d57cca6467df5256785e698ac473ef3 (patch) | |
tree | a57e2f9e2c95d564f8ee720251df537549938052 /tests/lib/Files | |
parent | df1cd1ba7e6e1f6e66a2b3229b5c082f1b81162e (diff) | |
download | nextcloud-server-45eb4a839d57cca6467df5256785e698ac473ef3.tar.gz nextcloud-server-45eb4a839d57cca6467df5256785e698ac473ef3.zip |
Refactor `OC\Server::getLockingProvider`
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
Diffstat (limited to 'tests/lib/Files')
-rw-r--r-- | tests/lib/Files/ViewTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Files/ViewTest.php b/tests/lib/Files/ViewTest.php index b9dd49d71fe..c4e17fd3118 100644 --- a/tests/lib/Files/ViewTest.php +++ b/tests/lib/Files/ViewTest.php @@ -1388,7 +1388,7 @@ class ViewTest extends \Test\TestCase { * Test that locks are on mount point paths instead of mount root */ public function testLockLocalMountPointPathInsteadOfStorageRoot() { - $lockingProvider = \OC::$server->getLockingProvider(); + $lockingProvider = \OC::$server->get(ILockingProvider::class); $view = new View('/testuser/files/'); $storage = new Temporary([]); Filesystem::mount($storage, [], '/'); @@ -1418,7 +1418,7 @@ class ViewTest extends \Test\TestCase { * Test that locks are on mount point paths and also mount root when requested */ public function testLockStorageRootButNotLocalMountPoint() { - $lockingProvider = \OC::$server->getLockingProvider(); + $lockingProvider = \OC::$server->get(ILockingProvider::class); $view = new View('/testuser/files/'); $storage = new Temporary([]); Filesystem::mount($storage, [], '/'); @@ -1448,7 +1448,7 @@ class ViewTest extends \Test\TestCase { * Test that locks are on mount point paths and also mount root when requested */ public function testLockMountPointPathFailReleasesBoth() { - $lockingProvider = \OC::$server->getLockingProvider(); + $lockingProvider = \OC::$server->get(ILockingProvider::class); $view = new View('/testuser/files/'); $storage = new Temporary([]); Filesystem::mount($storage, [], '/'); |