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-02-23 20:29:08 +0300
committerRobin Appelman <robin@icewind.nl>2022-03-04 18:29:59 +0300
commit1c468129afa2b2ec4a370a879f8eaffd22768baf (patch)
tree1c096e8c0a62371965104684e1f1bf2ef55eb2d4 /apps/files_external
parent5c0fe934988960ece3ac71d5a1dfc8df405413aa (diff)
adjust tests to new fs setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/tests/PersonalMountTest.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/files_external/tests/PersonalMountTest.php b/apps/files_external/tests/PersonalMountTest.php
index b8a57657f9d..fe0e4bc2533 100644
--- a/apps/files_external/tests/PersonalMountTest.php
+++ b/apps/files_external/tests/PersonalMountTest.php
@@ -27,6 +27,10 @@ namespace OCA\Files_External\Tests;
use OC\Files\Mount\Manager;
use OCA\Files_External\Lib\PersonalMount;
use OCA\Files_External\Lib\StorageConfig;
+use OCP\Diagnostics\IEventLogger;
+use OCP\EventDispatcher\IEventDispatcher;
+use OCP\Files\Config\IMountProviderCollection;
+use OCP\IUserSession;
use Test\TestCase;
class PersonalMountTest extends TestCase {
@@ -47,7 +51,12 @@ class PersonalMountTest extends TestCase {
$mount = new PersonalMount($storageService, $storageConfig, 10, $storage, '/foo');
- $mountManager = new Manager();
+ $mountManager = new Manager(
+ $this->createMock(IEventLogger::class),
+ $this->createMock(IMountProviderCollection::class),
+ $this->createMock(IUserSession::class),
+ $this->createMock(IEventDispatcher::class)
+ );
$mountManager->addMount($mount);
$this->assertEquals([$mount], $mountManager->findByStorageId('dummy'));