@@ -95,11 +95,7 @@ public function testGenerateObjectParameter(int $id, string $name, ?array $link,
95
95
if ($ link ) {
96
96
$ affectedUser = $ link ['owner ' ];
97
97
$ generatedLink = [
98
- 'view ' => 'dayGridMonth ' ,
99
- 'timeRange ' => 'now ' ,
100
- 'mode ' => 'sidebar ' ,
101
98
'objectId ' => base64_encode ('/remote.php/dav/calendars/ ' . $ link ['owner ' ] . '/ ' . $ link ['calendar_uri ' ] . '/ ' . $ link ['object_uri ' ]),
102
- 'recurrenceId ' => 'next '
103
99
];
104
100
$ this ->appManager ->expects ($ this ->once ())
105
101
->method ('isEnabledForUser ' )
@@ -110,7 +106,7 @@ public function testGenerateObjectParameter(int $id, string $name, ?array $link,
110
106
->method ('getWebroot ' );
111
107
$ this ->url ->expects ($ this ->once ())
112
108
->method ('linkToRouteAbsolute ' )
113
- ->with ('calendar.view.indexview.timerange .edit ' , $ generatedLink )
109
+ ->with ('calendar.view.indexdirect .edit ' , $ generatedLink )
114
110
->willReturn ('fullLink ' );
115
111
}
116
112
}
@@ -177,11 +173,7 @@ public static function generateObjectParameterLinkEncodingDataProvider(): array
177
173
/** @dataProvider generateObjectParameterLinkEncodingDataProvider */
178
174
public function testGenerateObjectParameterLinkEncoding (array $ link , string $ objectId ): void {
179
175
$ generatedLink = [
180
- 'view ' => 'dayGridMonth ' ,
181
- 'timeRange ' => 'now ' ,
182
- 'mode ' => 'sidebar ' ,
183
176
'objectId ' => $ objectId ,
184
- 'recurrenceId ' => 'next '
185
177
];
186
178
$ this ->appManager ->expects ($ this ->once ())
187
179
->method ('isEnabledForUser ' )
@@ -191,7 +183,7 @@ public function testGenerateObjectParameterLinkEncoding(array $link, string $obj
191
183
->method ('getWebroot ' );
192
184
$ this ->url ->expects ($ this ->once ())
193
185
->method ('linkToRouteAbsolute ' )
194
- ->with ('calendar.view.indexview.timerange .edit ' , $ generatedLink )
186
+ ->with ('calendar.view.indexdirect .edit ' , $ generatedLink )
195
187
->willReturn ('fullLink ' );
196
188
$ objectParameter = ['id ' => 42 , 'name ' => 'calendar ' , 'link ' => $ link ];
197
189
$ result = [
0 commit comments