aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-03-02 19:38:21 +0100
committerRobin Appelman <robin@icewind.nl>2022-03-04 16:30:09 +0100
commitd81713e5c10baf8e14f9a8c4906d0255b18cbb1f (patch)
treec496d4c02ca5424b6ca2a697a3131d5e66f7e7a9 /apps/files_external/tests
parent6c1d051ecd8bb4d76761da2c25d274e703a2fb97 (diff)
downloadnextcloud-server-d81713e5c10baf8e14f9a8c4906d0255b18cbb1f.tar.gz
nextcloud-server-d81713e5c10baf8e14f9a8c4906d0255b18cbb1f.zip
simplify setup of circular SetupManager<->Manager
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r--apps/files_external/tests/PersonalMountTest.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/files_external/tests/PersonalMountTest.php b/apps/files_external/tests/PersonalMountTest.php
index ff33f8e21a7..024695b0188 100644
--- a/apps/files_external/tests/PersonalMountTest.php
+++ b/apps/files_external/tests/PersonalMountTest.php
@@ -25,6 +25,7 @@
namespace OCA\Files_External\Tests;
use OC\Files\Mount\Manager;
+use OC\Files\SetupManagerFactory;
use OCA\Files_External\Lib\PersonalMount;
use OCA\Files_External\Lib\StorageConfig;
use OCP\Diagnostics\IEventLogger;
@@ -51,12 +52,7 @@ class PersonalMountTest extends TestCase {
$mount = new PersonalMount($storageService, $storageConfig, 10, $storage, '/foo');
- $mountManager = new Manager(
- $this->createMock(IEventLogger::class),
- $this->createMock(IMountProviderCollection::class),
- $this->createMock(IUserManager::class),
- $this->createMock(IEventDispatcher::class)
- );
+ $mountManager = new Manager($this->createMock(SetupManagerFactory::class));
$mountManager->addMount($mount);
$this->assertEquals([$mount], $mountManager->findByStorageId('dummy'));