aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-08-15 18:33:57 +0200
committerRobin Appelman <robin@icewind.nl>2023-08-18 14:25:28 +0200
commitb6c3507aa0e9c1cd17e8030b4f105199aecb6673 (patch)
tree451d1288af2acdaa5e5ec041db332cd6d94e9446 /tests/lib/Files
parentf0b70e539b34fb5c3f7e57f58f37f83c2b4e597f (diff)
downloadnextcloud-server-b6c3507aa0e9c1cd17e8030b4f105199aecb6673.tar.gz
nextcloud-server-b6c3507aa0e9c1cd17e8030b4f105199aecb6673.zip
only determine quota_include_external_storage once for quota wrapper
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/lib/Files')
-rw-r--r--tests/lib/Files/ViewTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/Files/ViewTest.php b/tests/lib/Files/ViewTest.php
index 200b54d5829..2bf483df7d7 100644
--- a/tests/lib/Files/ViewTest.php
+++ b/tests/lib/Files/ViewTest.php
@@ -22,6 +22,7 @@ use OCP\Files\FileInfo;
use OCP\Files\GenericFileException;
use OCP\Files\Mount\IMountManager;
use OCP\Files\Storage\IStorage;
+use OCP\IDBConnection;
use OCP\Lock\ILockingProvider;
use OCP\Lock\LockedException;
use OCP\Share\IShare;
@@ -1590,7 +1591,7 @@ class ViewTest extends \Test\TestCase {
->getMock();
$storage->method('getId')->willReturn('non-null-id');
$storage->method('getStorageCache')->willReturnCallback(function () use ($storage) {
- return new \OC\Files\Cache\Storage($storage);
+ return new \OC\Files\Cache\Storage($storage, true, \OC::$server->get(IDBConnection::class));
});
$mounts[] = $this->getMockBuilder(TestMoveableMountPoint::class)