summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-06 19:35:53 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit920ae54a2c6d4fa1e1e2612ed7f945a3bf770a18 (patch)
tree0071c10ed50eaaf63f00e1104f243e57deecbd36 /tests
parentb0c42e4cd7d51148a55fbff9113688b97b38c965 (diff)
🌐 ShareService: Localize dummy feed title
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Service/ShareServiceTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/Unit/Service/ShareServiceTest.php b/tests/Unit/Service/ShareServiceTest.php
index 06359d572..e6fb34716 100644
--- a/tests/Unit/Service/ShareServiceTest.php
+++ b/tests/Unit/Service/ShareServiceTest.php
@@ -46,6 +46,11 @@ class ShareServiceTest extends TestCase
private $feedService;
/**
+ * @var MockObject|IL10N
+ */
+ private $l;
+
+ /**
* @var MockObject|LoggerInterface
*/
private $logger;
@@ -76,12 +81,16 @@ class ShareServiceTest extends TestCase
->getMockBuilder(FeedServiceV2::class)
->disableOriginalConstructor()
->getMock();
+ $this->l = $this->getMockBuilder(IL10N::class)
+ ->disableOriginalConstructor()
+ ->getMock();
$this->time = 333333;
$this->class = new ShareService(
$this->feedService,
$this->itemService,
+ $this->l,
$this->logger
);