diff options
author | Robin Appelman <robin@icewind.nl> | 2022-03-02 19:38:21 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-03-04 16:30:09 +0100 |
commit | d81713e5c10baf8e14f9a8c4906d0255b18cbb1f (patch) | |
tree | c496d4c02ca5424b6ca2a697a3131d5e66f7e7a9 /apps/files_sharing/tests/External | |
parent | 6c1d051ecd8bb4d76761da2c25d274e703a2fb97 (diff) | |
download | nextcloud-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_sharing/tests/External')
-rw-r--r-- | apps/files_sharing/tests/External/ManagerTest.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/files_sharing/tests/External/ManagerTest.php b/apps/files_sharing/tests/External/ManagerTest.php index b6e9593918c..307b630970f 100644 --- a/apps/files_sharing/tests/External/ManagerTest.php +++ b/apps/files_sharing/tests/External/ManagerTest.php @@ -32,6 +32,7 @@ namespace OCA\Files_Sharing\Tests\External; use OC\Federation\CloudIdManager; use OC\Files\SetupManager; +use OC\Files\SetupManagerFactory; use OC\Files\Storage\StorageFactory; use OCA\Files_Sharing\External\Manager; use OCA\Files_Sharing\External\MountProvider; @@ -107,12 +108,7 @@ class ManagerTest extends TestCase { $this->uid = $this->getUniqueID('user'); $this->user = $this->createUser($this->uid, ''); - $this->mountManager = new \OC\Files\Mount\Manager( - $this->createMock(IEventLogger::class), - $this->createMock(IMountProviderCollection::class), - $this->createMock(IUserManager::class), - $this->createMock(IEventDispatcher::class) - ); + $this->mountManager = new \OC\Files\Mount\Manager($this->createMock(SetupManagerFactory::class)); $this->clientService = $this->getMockBuilder(IClientService::class) ->disableOriginalConstructor()->getMock(); $this->cloudFederationProviderManager = $this->createMock(ICloudFederationProviderManager::class); |