aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-02-13 09:40:02 +0100
committerGitHub <noreply@github.com>2024-02-13 09:40:02 +0100
commit56640c7fdd1a8323acc3910b07baf8d9ce3d651c (patch)
tree0fc02606195cafe8abca9b8a1b1c3e7760865ffc /apps/files_external
parentf2a7bfd8775ddd39f53447a37e0233df81046b30 (diff)
parente9d97a568fd00251dcc3d68042140948fa0dc6da (diff)
downloadnextcloud-server-56640c7fdd1a8323acc3910b07baf8d9ce3d651c.tar.gz
nextcloud-server-56640c7fdd1a8323acc3910b07baf8d9ce3d651c.zip
Merge pull request #39889 from nextcloud/cache-di
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/tests/Service/StoragesServiceTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_external/tests/Service/StoragesServiceTest.php b/apps/files_external/tests/Service/StoragesServiceTest.php
index 4eaf70a8e84..1ea2176ac90 100644
--- a/apps/files_external/tests/Service/StoragesServiceTest.php
+++ b/apps/files_external/tests/Service/StoragesServiceTest.php
@@ -44,7 +44,9 @@ use OCP\Files\Cache\ICache;
use OCP\Files\Config\IUserMountCache;
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 = [];
@@ -66,7 +68,6 @@ class CleaningDBConfig extends DBConfigService {
* @group DB
*/
abstract class StoragesServiceTest extends \Test\TestCase {
-
/**
* @var StoragesService
*/
@@ -315,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);
+ $storageCache = new \OC\Files\Cache\Storage($rustyStorageId, true, Server::get(IDBConnection::class));
/** @var IUserMountCache $mountCache */
$mountCache = \OC::$server->get(IUserMountCache::class);