aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-02-12 16:38:08 +0100
committerRobin Appelman <robin@icewind.nl>2024-02-12 16:39:00 +0100
commite9d97a568fd00251dcc3d68042140948fa0dc6da (patch)
tree57c42dffc8ef680e0ff6ca285c0e119071b22712 /apps/files_external
parente50c176428440e94a4eacb8d36e28b4f5564f170 (diff)
downloadnextcloud-server-e9d97a568fd00251dcc3d68042140948fa0dc6da.tar.gz
nextcloud-server-e9d97a568fd00251dcc3d68042140948fa0dc6da.zip
use OCP\Server
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/tests/Service/StoragesServiceTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/tests/Service/StoragesServiceTest.php b/apps/files_external/tests/Service/StoragesServiceTest.php
index 8c38954dee6..1ea2176ac90 100644
--- a/apps/files_external/tests/Service/StoragesServiceTest.php
+++ b/apps/files_external/tests/Service/StoragesServiceTest.php
@@ -46,6 +46,7 @@ use OCP\Files\Mount\IMountPoint;
use OCP\Files\Storage\IStorage;
use OCP\IDBConnection;
use OCP\IUser;
+use OCP\Server;
class CleaningDBConfig extends DBConfigService {
private $mountIds = [];
@@ -67,7 +68,6 @@ class CleaningDBConfig extends DBConfigService {
* @group DB
*/
abstract class StoragesServiceTest extends \Test\TestCase {
-
/**
* @var StoragesService
*/
@@ -316,7 +316,7 @@ abstract class StoragesServiceTest extends \Test\TestCase {
// manually trigger storage entry because normally it happens on first
// access, which isn't possible within this test
- $storageCache = new \OC\Files\Cache\Storage($rustyStorageId, true, \OC::$server->get(IDBConnection::class));
+ $storageCache = new \OC\Files\Cache\Storage($rustyStorageId, true, Server::get(IDBConnection::class));
/** @var IUserMountCache $mountCache */
$mountCache = \OC::$server->get(IUserMountCache::class);