diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-09-08 19:15:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-08 19:15:05 +0200 |
commit | 8a79d0cc706f00d920bf26b693bbf2f3ee1f6dd7 (patch) | |
tree | 16be70a6e1489c548f4aac26e2c574678d4461eb /tests | |
parent | 75c38d5d9862bea2945162226e9bc233872bfc74 (diff) | |
parent | 7e625a8d22b4a243632a30f242d275d27a327258 (diff) | |
download | nextcloud-server-8a79d0cc706f00d920bf26b693bbf2f3ee1f6dd7.tar.gz nextcloud-server-8a79d0cc706f00d920bf26b693bbf2f3ee1f6dd7.zip |
Merge pull request #6414 from nextcloud/share-notification-wrong-language
Use the language of the recipient for the share notification
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 174aaffd0b6..b9271c2f752 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, @@ -2124,6 +2130,7 @@ class ManagerTest extends \Test\TestCase { $this->mountManager, $this->groupManager, $this->l, + $this->l10nFactory, $factory, $this->userManager, $this->rootFolder, @@ -2166,6 +2173,7 @@ class ManagerTest extends \Test\TestCase { $this->mountManager, $this->groupManager, $this->l, + $this->l10nFactory, $factory, $this->userManager, $this->rootFolder, @@ -2817,6 +2825,7 @@ class ManagerTest extends \Test\TestCase { $this->mountManager, $this->groupManager, $this->l, + $this->l10nFactory, $factory, $this->userManager, $this->rootFolder, @@ -2848,6 +2857,7 @@ class ManagerTest extends \Test\TestCase { $this->mountManager, $this->groupManager, $this->l, + $this->l10nFactory, $factory, $this->userManager, $this->rootFolder, @@ -2910,6 +2920,7 @@ class ManagerTest extends \Test\TestCase { $this->mountManager, $this->groupManager, $this->l, + $this->l10nFactory, $factory, $this->userManager, $this->rootFolder, |