diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-10-07 15:31:03 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-12-21 22:55:06 +0100 |
commit | 35e5cc88f0e77738bbe47a01d4f95bc9ad40f2f0 (patch) | |
tree | 5d2159d6b011bce9d93e9c56bd8ae5e49bddc7db /apps/files_external/tests/PersonalMountTest.php | |
parent | b37397d4fc39196f49a3d1e858e9c0ad7e119793 (diff) | |
download | nextcloud-server-35e5cc88f0e77738bbe47a01d4f95bc9ad40f2f0.tar.gz nextcloud-server-35e5cc88f0e77738bbe47a01d4f95bc9ad40f2f0.zip |
Expose session based authentication through mount point type
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_external/tests/PersonalMountTest.php')
-rw-r--r-- | apps/files_external/tests/PersonalMountTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_external/tests/PersonalMountTest.php b/apps/files_external/tests/PersonalMountTest.php index 092379cf064..7d5179104bb 100644 --- a/apps/files_external/tests/PersonalMountTest.php +++ b/apps/files_external/tests/PersonalMountTest.php @@ -26,10 +26,12 @@ namespace OCA\Files_External\Tests; use OC\Files\Mount\Manager; use OCA\Files_External\Lib\PersonalMount; +use OCA\Files_External\Lib\StorageConfig; use Test\TestCase; class PersonalMountTest extends TestCase { public function testFindByStorageId() { + $storageConfig = $this->createMock(StorageConfig::class); /** @var \OCA\Files_External\Service\UserStoragesService $storageService */ $storageService = $this->getMockBuilder('\OCA\Files_External\Service\UserStoragesService') ->disableOriginalConstructor() @@ -43,7 +45,7 @@ class PersonalMountTest extends TestCase { ->method('getId') ->willReturn('dummy'); - $mount = new PersonalMount($storageService, 10, $storage, '/foo'); + $mount = new PersonalMount($storageService, $storageConfig, 10, $storage, '/foo'); $mountManager = new Manager(); $mountManager->addMount($mount); |