summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-05-10 09:44:50 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-05-10 09:44:50 +0200
commite8e72aa9101b1c4b7e321dd3f17dcc9462f34a8f (patch)
tree0eec63cb17f7ad60130474a0bbdcbfaaa281d884 /tests
parent1fb7be42e55236c2663b52f89a85b54d81ae08ba (diff)
parent254576e1f7f5ec610ddbd9de81005397191cf52f (diff)
downloadnextcloud-server-e8e72aa9101b1c4b7e321dd3f17dcc9462f34a8f.tar.gz
nextcloud-server-e8e72aa9101b1c4b7e321dd3f17dcc9462f34a8f.zip
Merge pull request #24434 from owncloud/permalinks
Permalinks
Diffstat (limited to 'tests')
-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,
])
);