aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Share20
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-09-08 10:34:19 +0200
committerJoas Schilling <coding@schilljs.com>2017-09-08 10:48:16 +0200
commit7e625a8d22b4a243632a30f242d275d27a327258 (patch)
treecf6758e896cae235e5e8abe696864aa6a9a0cd15 /tests/lib/Share20
parent194f880073f5a549049db7387e9c988511a07d8b (diff)
downloadnextcloud-server-7e625a8d22b4a243632a30f242d275d27a327258.tar.gz
nextcloud-server-7e625a8d22b4a243632a30f242d275d27a327258.zip
Use the language of the recipient for the share notification
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/Share20')
-rw-r--r--tests/lib/Share20/ManagerTest.php11
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,