test: adjust tests

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-01-27 17:26:26 +01:00
parent 8eb9cd7604
commit 810a0b253d
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -10,6 +10,7 @@ namespace OCA\Files_Sharing\Tests;
use OC\Share20\Share;
use OCA\Files_Sharing\MountProvider;
use OCA\Files_Sharing\SharedMount;
use OCA\Files_Sharing\ShareTargetValidator;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\Cache\ICacheEntry;
use OCP\Files\Config\ICachedMountInfo;
@ -54,8 +55,9 @@ class MountProviderTest extends \Test\TestCase {
$cacheFactory = $this->createMock(ICacheFactory::class);
$cacheFactory->method('createLocal')->willReturn($this->cache);
$mountManager = $this->createMock(IMountManager::class);
$shareValidator = $this->createMock(ShareTargetValidator::class);
$this->provider = new MountProvider($this->config, $this->shareManager, $this->logger, $eventDispatcher, $cacheFactory, $mountManager);
$this->provider = new MountProvider($this->config, $this->shareManager, $this->logger, $eventDispatcher, $cacheFactory, $mountManager, $shareValidator);
}
private function makeMockShareAttributes($attrs) {