Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update test to pass l10n instead of factory
Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb committed Feb 3, 2020
commit 29fede5fe56c93fee4cffe5569d3c070e2423349
7 changes: 1 addition & 6 deletions apps/settings/tests/Settings/Admin/SharingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
use OCP\Constants;
use OCP\IConfig;
use OCP\IL10N;
use OCP\L10N\IFactory;
use OCP\Share\IManager;
use Test\TestCase;

Expand All @@ -52,15 +51,11 @@ protected function setUp(): void {
$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
);
}
Expand Down