diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-05-13 08:27:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-13 08:27:28 +0200 |
commit | fe33e9c08cbbc80738660d2d78838f04d24e0e2e (patch) | |
tree | feab7d407620addc9a7eb50f8bd5789e08434074 /tests | |
parent | 48bb547e8a24dab04bcc18df9bf5f50aa6b7462a (diff) | |
parent | ec6b83cc1891214c7fa3a236626807b4335f9a2f (diff) | |
download | nextcloud-server-fe33e9c08cbbc80738660d2d78838f04d24e0e2e.tar.gz nextcloud-server-fe33e9c08cbbc80738660d2d78838f04d24e0e2e.zip |
Merge pull request #32250 from nextcloud/cleanup/cappedmemorycache
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Config/UserMountCacheTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/Files/Config/UserMountCacheTest.php b/tests/lib/Files/Config/UserMountCacheTest.php index f4c6a427abd..221159bc983 100644 --- a/tests/lib/Files/Config/UserMountCacheTest.php +++ b/tests/lib/Files/Config/UserMountCacheTest.php @@ -11,6 +11,7 @@ namespace Test\Files\Config; use OC\DB\QueryBuilder\Literal; use OC\Files\Mount\MountPoint; use OC\Files\Storage\Storage; +use OC\Cache\CappedMemoryCache; use OC\User\Manager; use OCP\EventDispatcher\IEventDispatcher; use OCP\Files\Config\ICachedMountInfo; @@ -114,7 +115,7 @@ class UserMountCacheTest extends TestCase { } private function clearCache() { - $this->invokePrivate($this->cache, 'mountsForUsers', [[]]); + $this->invokePrivate($this->cache, 'mountsForUsers', [new CappedMemoryCache()]); } public function testNewMounts() { |