diff options
author | Joas Schilling <coding@schilljs.com> | 2017-09-08 10:34:19 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-09-11 11:28:20 +0200 |
commit | 2a6855a76dd6a18d67fac0fcb960096e6a5809ce (patch) | |
tree | 0860c5368d98b6e7add1ee7630ab07b41e1b61ff /tests | |
parent | b7768ac11d9ccb1d3c97b1f32c3c96f2bef6814a (diff) | |
download | nextcloud-server-2a6855a76dd6a18d67fac0fcb960096e6a5809ce.tar.gz nextcloud-server-2a6855a76dd6a18d67fac0fcb960096e6a5809ce.zip |
Use the language of the recipient for the share notification
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Share20/ManagerTest.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php index fd2bfb3a80b..95831d19cd1 100644 --- a/tests/lib/Share20/ManagerTest.php +++ b/tests/lib/Share20/ManagerTest.php @@ -35,6 +35,7 @@ use OCP\IServerContainer; use OCP\IURLGenerator; use OCP\IUser; use OCP\IUserManager; +use OCP\L10N\IFactory; use OCP\Mail\IMailer; use OCP\Share\Exceptions\ShareNotFound; use OCP\Share\IProviderFactory; @@ -80,6 +81,8 @@ class ManagerTest extends \Test\TestCase { protected $groupManager; /** @var IL10N|\PHPUnit_Framework_MockObject_MockObject */ protected $l; + /** @var IFactory|\PHPUnit_Framework_MockObject_MockObject */ + protected $l10nFactory; /** @var DummyFactory */ protected $factory; /** @var IUserManager|\PHPUnit_Framework_MockObject_MockObject */ @@ -110,6 +113,7 @@ class ManagerTest extends \Test\TestCase { $this->urlGenerator = $this->createMock(IURLGenerator::class); $this->defaults = $this->createMock(\OC_Defaults::class); + $this->l10nFactory = $this->createMock(IFactory::class); $this->l = $this->createMock(IL10N::class); $this->l->method('t') ->will($this->returnCallback(function($text, $parameters = []) { @@ -126,6 +130,7 @@ class ManagerTest extends \Test\TestCase { $this->mountManager, $this->groupManager, $this->l, + $this->l10nFactory, $this->factory, $this->userManager, $this->rootFolder, @@ -153,6 +158,7 @@ class ManagerTest extends \Test\TestCase { $this->mountManager, $this->groupManager, $this->l, + $this->l10nFactory, $this->factory, $this->userManager, $this->rootFolder, @@ -2089,6 +2095,7 @@ class ManagerTest extends \Test\TestCase { $this->mountManager, $this->groupManager, $this->l, + $this->l10nFactory, $factory, $this->userManager, $this->rootFolder, @@ -2131,6 +2138,7 @@ class ManagerTest extends \Test\TestCase { $this->mountManager, $this->groupManager, $this->l, + $this->l10nFactory, $factory, $this->userManager, $this->rootFolder, @@ -2782,6 +2790,7 @@ class ManagerTest extends \Test\TestCase { $this->mountManager, $this->groupManager, $this->l, + $this->l10nFactory, $factory, $this->userManager, $this->rootFolder, @@ -2813,6 +2822,7 @@ class ManagerTest extends \Test\TestCase { $this->mountManager, $this->groupManager, $this->l, + $this->l10nFactory, $factory, $this->userManager, $this->rootFolder, @@ -2875,6 +2885,7 @@ class ManagerTest extends \Test\TestCase { $this->mountManager, $this->groupManager, $this->l, + $this->l10nFactory, $factory, $this->userManager, $this->rootFolder, |