summaryrefslogtreecommitdiffstats
path: root/tests/lib/share
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-05-06 14:41:31 +0200
committerVincent Petry <pvince81@owncloud.com>2016-05-06 16:46:59 +0200
commitcaefe23bb610308324d9436dd7c1e109118062eb (patch)
treeb4df46557029454d1db44f6ac56fa3989a065b37 /tests/lib/share
parent112b703df0d695f2f54a844c36dbf852be437ea1 (diff)
downloadnextcloud-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.php7
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,
])
);