diff options
author | Robin Appelman <robin@icewind.nl> | 2022-03-02 21:38:21 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-03-04 18:30:09 +0300 |
commit | d81713e5c10baf8e14f9a8c4906d0255b18cbb1f (patch) | |
tree | c496d4c02ca5424b6ca2a697a3131d5e66f7e7a9 /apps/files_external | |
parent | 6c1d051ecd8bb4d76761da2c25d274e703a2fb97 (diff) |
simplify setup of circular SetupManager<->Manager
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/tests/PersonalMountTest.php | 8 |
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')); |