diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-05-06 14:41:31 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-05-06 16:46:59 +0200 |
commit | caefe23bb610308324d9436dd7c1e109118062eb (patch) | |
tree | b4df46557029454d1db44f6ac56fa3989a065b37 /tests/lib/share | |
parent | 112b703df0d695f2f54a844c36dbf852be437ea1 (diff) | |
download | nextcloud-server-caefe23bb610308324d9436dd7c1e109118062eb.tar.gz nextcloud-server-caefe23bb610308324d9436dd7c1e109118062eb.zip |
Send permalink in internal share notification emails
Diffstat (limited to 'tests/lib/share')
-rw-r--r-- | tests/lib/share/MailNotificationsTest.php | 7 |
1 files changed, 3 insertions, 4 deletions
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, ]) ); |