diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-02-03 10:31:23 +0100 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-02-03 10:31:23 +0100 |
commit | 29fede5fe56c93fee4cffe5569d3c070e2423349 (patch) | |
tree | 322f53cbcb0f5b5372c431980a01d3f902a19059 /apps | |
parent | af8ad9628585273b32534d151d348eb66a0ffd3d (diff) | |
download | nextcloud-server-29fede5fe56c93fee4cffe5569d3c070e2423349.tar.gz nextcloud-server-29fede5fe56c93fee4cffe5569d3c070e2423349.zip |
Update test to pass l10n instead of factory
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings/tests/Settings/Admin/SharingTest.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/settings/tests/Settings/Admin/SharingTest.php b/apps/settings/tests/Settings/Admin/SharingTest.php index d662c1864db..5006f90cbd1 100644 --- a/apps/settings/tests/Settings/Admin/SharingTest.php +++ b/apps/settings/tests/Settings/Admin/SharingTest.php @@ -33,7 +33,6 @@ use OCP\AppFramework\Http\TemplateResponse; use OCP\Constants; use OCP\IConfig; use OCP\IL10N; -use OCP\L10N\IFactory; use OCP\Share\IManager; use Test\TestCase; @@ -52,15 +51,11 @@ class SharingTest extends 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 ); } |