aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-11-24 12:10:04 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-11-27 08:50:44 +0100
commit4af12dcab178efe395e885a7f09ee87619800bfd (patch)
tree6e9f20246c66661bfc30eef00e61d1bc602319bd /apps
parent011e05574f0abdc00b36e1be9712762c3a176a70 (diff)
downloadnextcloud-server-4af12dcab178efe395e885a7f09ee87619800bfd.tar.gz
nextcloud-server-4af12dcab178efe395e885a7f09ee87619800bfd.zip
Fix unit tests
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/comments/lib/Notification/Notifier.php2
-rw-r--r--apps/comments/tests/Unit/Notification/NotifierTest.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/comments/lib/Notification/Notifier.php b/apps/comments/lib/Notification/Notifier.php
index 2b1129f04b3..ead68840a4f 100644
--- a/apps/comments/lib/Notification/Notifier.php
+++ b/apps/comments/lib/Notification/Notifier.php
@@ -109,7 +109,7 @@ class Notifier implements INotifier {
[$node->getName()]
))
->setRichSubject(
- $l->t('You were mentioned in “{file}”, in a comment by a user that has since been deleted'),
+ $l->t('You were mentioned on “{file}”, in a comment by a user that has since been deleted'),
[
'file' => [
'type' => 'file',
diff --git a/apps/comments/tests/Unit/Notification/NotifierTest.php b/apps/comments/tests/Unit/Notification/NotifierTest.php
index a7ada41d43a..07dcbfdd849 100644
--- a/apps/comments/tests/Unit/Notification/NotifierTest.php
+++ b/apps/comments/tests/Unit/Notification/NotifierTest.php
@@ -188,7 +188,7 @@ class NotifierTest extends TestCase {
public function testPrepareSuccessDeletedUser() {
$fileName = 'Gre\'thor.odp';
- $message = 'A (now) deleted user mentioned you in a comment on “Gre\'thor.odp”';
+ $message = 'You were mentioned on “Gre\'thor.odp”, in a comment by a user that has since been deleted';
/** @var Node|\PHPUnit_Framework_MockObject_MockObject $node */
$node = $this->createMock(Node::class);
@@ -230,7 +230,7 @@ class NotifierTest extends TestCase {
$this->notification
->expects($this->once())
->method('setRichSubject')
- ->with('A (now) deleted user mentioned you in a comment on “{file}”', $this->anything())
+ ->with('You were mentioned on “{file}”, in a comment by a user that has since been deleted', $this->anything())
->willReturnSelf();
$this->notification
->expects($this->once())