diff --git a/lib/private/Share/MailNotifications.php b/lib/private/Share/MailNotifications.php index aaecd5353e..3d4301a2bd 100644 --- a/lib/private/Share/MailNotifications.php +++ b/lib/private/Share/MailNotifications.php @@ -123,7 +123,7 @@ class MailNotifications { $link = $this->urlGenerator->linkToRouteAbsolute( 'files.viewcontroller.showFile', - ['fileId' => $items[0]['item_source']] + ['fileid' => $items[0]['item_source']] ); list($htmlBody, $textBody) = $this->createMailBody($filename, $link, $expiration, 'internal'); diff --git a/tests/lib/Share/MailNotificationsTest.php b/tests/lib/Share/MailNotificationsTest.php index 0c951d11f8..d1c2a17cb9 100644 --- a/tests/lib/Share/MailNotificationsTest.php +++ b/tests/lib/Share/MailNotificationsTest.php @@ -241,10 +241,8 @@ class MailNotificationsTest extends \Test\TestCase { $this->urlGenerator->expects($this->once()) ->method('linkToRouteAbsolute') ->with( - $this->equalTo('files.viewcontroller.showFile'), - $this->equalTo([ - 'fileId' => 123, - ]) + 'files.viewcontroller.showFile', + ['fileid' => 123] ); $recipientList = [$recipient];