From caefe23bb610308324d9436dd7c1e109118062eb Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 6 May 2016 14:41:31 +0200 Subject: Send permalink in internal share notification emails --- tests/lib/share/MailNotificationsTest.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/lib') diff --git a/tests/lib/share/MailNotificationsTest.php b/tests/lib/share/MailNotificationsTest.php index 8c8ca78f39a..f160fed57ae 100644 --- a/tests/lib/share/MailNotificationsTest.php +++ b/tests/lib/share/MailNotificationsTest.php @@ -222,7 +222,7 @@ class MailNotificationsTest extends \Test\TestCase { $mailNotifications->method('getItemSharedWithUser') ->withAnyParameters() ->willReturn([ - ['file_target' => '/welcome.txt'] + ['file_target' => '/welcome.txt', 'item_source' => 123], ]); $recipient = $this->getMockBuilder('\OCP\IUser') @@ -239,10 +239,9 @@ class MailNotificationsTest extends \Test\TestCase { $this->urlGenerator->expects($this->once()) ->method('linkToRouteAbsolute') ->with( - $this->equalTo('files.view.index'), + $this->equalTo('files.viewcontroller.showFile'), $this->equalTo([ - 'dir' => '/', - 'scrollto' => 'welcome.txt' + 'fileId' => 123, ]) ); -- cgit v1.2.3