mirror of https://github.com/nextcloud/calendar
Fix route for public link emails
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
eca3a76ad0
commit
2b419f05c8
|
@ -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,
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue