Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-03-02 21:38:21 +0300
committerRobin Appelman <robin@icewind.nl>2022-03-04 18:30:09 +0300
commitd81713e5c10baf8e14f9a8c4906d0255b18cbb1f (patch)
treec496d4c02ca5424b6ca2a697a3131d5e66f7e7a9 /tests/lib/Files
parent6c1d051ecd8bb4d76761da2c25d274e703a2fb97 (diff)
simplify setup of circular SetupManager<->Manager
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/lib/Files')
-rw-r--r--tests/lib/Files/Mount/ManagerTest.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/lib/Files/Mount/ManagerTest.php b/tests/lib/Files/Mount/ManagerTest.php
index 159fffc7cb8..e834d77b73a 100644
--- a/tests/lib/Files/Mount/ManagerTest.php
+++ b/tests/lib/Files/Mount/ManagerTest.php
@@ -8,6 +8,7 @@
namespace Test\Files\Mount;
+use OC\Files\SetupManagerFactory;
use OC\Files\Storage\Temporary;
use OCP\Diagnostics\IEventLogger;
use OCP\EventDispatcher\IEventDispatcher;
@@ -28,12 +29,7 @@ class ManagerTest extends \Test\TestCase {
protected function setUp(): void {
parent::setUp();
- $this->manager = new \OC\Files\Mount\Manager(
- $this->createMock(IEventLogger::class),
- $this->createMock(IMountProviderCollection::class),
- $this->createMock(IUserManager::class),
- $this->createMock(IEventDispatcher::class),
- );
+ $this->manager = new \OC\Files\Mount\Manager($this->createMock(SetupManagerFactory::class));
}
public function testFind() {