The routing system is non-forgiving
$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');
$this->urlGenerator->expects($this->once())
->method('linkToRouteAbsolute')
->with(
- $this->equalTo('files.viewcontroller.showFile'),
- $this->equalTo([
- 'fileId' => 123,
- ])
+ 'files.viewcontroller.showFile',
+ ['fileid' => 123]
);
$recipientList = [$recipient];