@@ -75,11 +75,7 @@ public function testGenerateObjectParameter(int $id, string $name, ?array $link,
75
75
if ($ link ) {
76
76
$ affectedUser = $ link ['owner ' ];
77
77
$ generatedLink = [
78
- 'view ' => 'dayGridMonth ' ,
79
- 'timeRange ' => 'now ' ,
80
- 'mode ' => 'sidebar ' ,
81
78
'objectId ' => base64_encode ('/remote.php/dav/calendars/ ' . $ link ['owner ' ] . '/ ' . $ link ['calendar_uri ' ] . '/ ' . $ link ['object_uri ' ]),
82
- 'recurrenceId ' => 'next '
83
79
];
84
80
$ this ->appManager ->expects ($ this ->once ())
85
81
->method ('isEnabledForUser ' )
@@ -90,7 +86,7 @@ public function testGenerateObjectParameter(int $id, string $name, ?array $link,
90
86
->method ('getWebroot ' );
91
87
$ this ->url ->expects ($ this ->once ())
92
88
->method ('linkToRouteAbsolute ' )
93
- ->with ('calendar.view.indexview.timerange .edit ' , $ generatedLink )
89
+ ->with ('calendar.view.indexdirect .edit ' , $ generatedLink )
94
90
->willReturn ('fullLink ' );
95
91
}
96
92
}
@@ -159,11 +155,7 @@ public static function generateObjectParameterLinkEncodingDataProvider(): array
159
155
*/
160
156
public function testGenerateObjectParameterLinkEncoding (array $ link , string $ objectId ): void {
161
157
$ generatedLink = [
162
- 'view ' => 'dayGridMonth ' ,
163
- 'timeRange ' => 'now ' ,
164
- 'mode ' => 'sidebar ' ,
165
158
'objectId ' => $ objectId ,
166
- 'recurrenceId ' => 'next '
167
159
];
168
160
$ this ->appManager ->expects ($ this ->once ())
169
161
->method ('isEnabledForUser ' )
@@ -173,7 +165,7 @@ public function testGenerateObjectParameterLinkEncoding(array $link, string $obj
173
165
->method ('getWebroot ' );
174
166
$ this ->url ->expects ($ this ->once ())
175
167
->method ('linkToRouteAbsolute ' )
176
- ->with ('calendar.view.indexview.timerange .edit ' , $ generatedLink )
168
+ ->with ('calendar.view.indexdirect .edit ' , $ generatedLink )
177
169
->willReturn ('fullLink ' );
178
170
$ objectParameter = ['id ' => 42 , 'name ' => 'calendar ' , 'link ' => $ link ];
179
171
$ result = [
0 commit comments