Skip to content

Commit 577c711

Browse files
committed
test: adjust tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 46802e9 commit 577c711

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/files_sharing/tests/MountProviderTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use OC\Share20\Share;
1111
use OCA\Files_Sharing\MountProvider;
1212
use OCA\Files_Sharing\SharedMount;
13+
use OCA\Files_Sharing\ShareTargetValidator;
1314
use OCP\EventDispatcher\IEventDispatcher;
1415
use OCP\Files\Cache\ICacheEntry;
1516
use OCP\Files\Config\ICachedMountInfo;
@@ -54,8 +55,9 @@ protected function setUp(): void {
5455
$cacheFactory = $this->createMock(ICacheFactory::class);
5556
$cacheFactory->method('createLocal')->willReturn($this->cache);
5657
$mountManager = $this->createMock(IMountManager::class);
58+
$shareValidator = $this->createMock(ShareTargetValidator::class);
5759

58-
$this->provider = new MountProvider($this->config, $this->shareManager, $this->logger, $eventDispatcher, $cacheFactory, $mountManager);
60+
$this->provider = new MountProvider($this->config, $this->shareManager, $this->logger, $eventDispatcher, $cacheFactory, $mountManager, $shareValidator);
5961
}
6062

6163
private function makeMockShareAttributes($attrs) {

0 commit comments

Comments
 (0)