Fix MissingMandatoryParametersException for share notifications

The routing system is non-forgiving
This commit is contained in:
Joas Schilling 2016-09-13 14:09:34 +02:00
parent d7faff0b0d
commit 107b418815
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
2 changed files with 3 additions and 5 deletions

View File

@ -123,7 +123,7 @@ class MailNotifications {
$link = $this->urlGenerator->linkToRouteAbsolute( $link = $this->urlGenerator->linkToRouteAbsolute(
'files.viewcontroller.showFile', 'files.viewcontroller.showFile',
['fileId' => $items[0]['item_source']] ['fileid' => $items[0]['item_source']]
); );
list($htmlBody, $textBody) = $this->createMailBody($filename, $link, $expiration, 'internal'); list($htmlBody, $textBody) = $this->createMailBody($filename, $link, $expiration, 'internal');

View File

@ -241,10 +241,8 @@ class MailNotificationsTest extends \Test\TestCase {
$this->urlGenerator->expects($this->once()) $this->urlGenerator->expects($this->once())
->method('linkToRouteAbsolute') ->method('linkToRouteAbsolute')
->with( ->with(
$this->equalTo('files.viewcontroller.showFile'), 'files.viewcontroller.showFile',
$this->equalTo([ ['fileid' => 123]
'fileId' => 123,
])
); );
$recipientList = [$recipient]; $recipientList = [$recipient];