Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
use OCP\Constants;
use OCP\IConfig;
use OCP\IL10N;
-use OCP\L10N\IFactory;
use OCP\Share\IManager;
use Test\TestCase;
$this->config = $this->getMockBuilder(IConfig::class)->getMock();
$this->l10n = $this->getMockBuilder(IL10N::class)->getMock();
- $l10Factory = $this->createMock(IFactory::class);
- $l10Factory->method('get')
- ->willReturn($this->l10n);
-
$this->shareManager = $this->getMockBuilder(IManager::class)->getMock();
$this->admin = new Sharing(
$this->config,
- $l10Factory,
+ $this->l10n,
$this->shareManager
);
}