Fix route for public link emails

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
Georg Ehrke 2020-08-21 10:38:26 +02:00
parent eca3a76ad0
commit 2b419f05c8
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
2 changed files with 4 additions and 4 deletions

View File

@ -209,7 +209,7 @@ class EmailController extends Controller {
* @return string
*/
private function getURLFromToken(string $token):string {
return $this->urlGenerator->linkToRouteAbsolute('calendar.view.public_index_with_branding', [
return $this->urlGenerator->linkToRouteAbsolute('calendar.publicView.public_index_with_branding', [
'token' => $token,
]);
}

View File

@ -67,7 +67,7 @@ class EmailControllerTest extends TestCase {
/** @var EmailController */
private $controller;
protected function setUp():void {
parent::setUp();
@ -165,7 +165,7 @@ class EmailControllerTest extends TestCase {
$this->urlGenerator->expects($this->at(0))
->method('linkToRouteAbsolute')
->with('calendar.view.public_index_with_branding', [
->with('calendar.publicView.public_index_with_branding', [
'token' => 'token123'
])
->willReturn('http://publicURL123');
@ -271,7 +271,7 @@ class EmailControllerTest extends TestCase {
$this->urlGenerator->expects($this->at(0))
->method('linkToRouteAbsolute')
->with('calendar.view.public_index_with_branding', [
->with('calendar.publicView.public_index_with_branding', [
'token' => 'token123'
])
->willReturn('http://publicURL123');