@@ -93,43 +93,50 @@ public function testIndex():void {
9393 ->method ('getAppValue ' )
9494 ->with ('calendar ' , 'slotDuration ' , '00:30:00 ' )
9595 ->willReturn ('defaultSlotDuration ' );
96-
9796 $ this ->config ->expects ($ this ->at (7 ))
97+ ->method ('getAppValue ' )
98+ ->with ('calendar ' , 'showTasks ' , 'yes ' )
99+ ->willReturn ('defaultShowTasks ' );
100+ $ this ->config ->expects ($ this ->at (8 ))
98101 ->method ('getAppValue ' )
99102 ->with ('calendar ' , 'installed_version ' )
100103 ->willReturn ('1.0.0 ' );
101- $ this ->config ->expects ($ this ->at (8 ))
104+ $ this ->config ->expects ($ this ->at (9 ))
102105 ->method ('getUserValue ' )
103106 ->with ('user123 ' , 'calendar ' , 'eventLimit ' , 'defaultEventLimit ' )
104107 ->willReturn ('yes ' );
105- $ this ->config ->expects ($ this ->at (9 ))
108+ $ this ->config ->expects ($ this ->at (10 ))
106109 ->method ('getUserValue ' )
107110 ->with ('user123 ' , 'calendar ' , 'firstRun ' , 'yes ' )
108111 ->willReturn ('yes ' );
109- $ this ->config ->expects ($ this ->at (10 ))
112+ $ this ->config ->expects ($ this ->at (11 ))
110113 ->method ('getUserValue ' )
111114 ->with ('user123 ' , 'calendar ' , 'currentView ' , 'defaultCurrentView ' )
112115 ->willReturn ('timeGridWeek ' );
113- $ this ->config ->expects ($ this ->at (11 ))
116+ $ this ->config ->expects ($ this ->at (12 ))
114117 ->method ('getUserValue ' )
115118 ->with ('user123 ' , 'calendar ' , 'showWeekends ' , 'defaultShowWeekends ' )
116119 ->willReturn ('yes ' );
117- $ this ->config ->expects ($ this ->at (12 ))
120+ $ this ->config ->expects ($ this ->at (13 ))
118121 ->method ('getUserValue ' )
119122 ->with ('user123 ' , 'calendar ' , 'showWeekNr ' , 'defaultShowWeekNr ' )
120123 ->willReturn ('yes ' );
121- $ this ->config ->expects ($ this ->at (13 ))
124+ $ this ->config ->expects ($ this ->at (14 ))
122125 ->method ('getUserValue ' )
123126 ->with ('user123 ' , 'calendar ' , 'skipPopover ' , 'defaultSkipPopover ' )
124127 ->willReturn ('yes ' );
125- $ this ->config ->expects ($ this ->at (14 ))
128+ $ this ->config ->expects ($ this ->at (15 ))
126129 ->method ('getUserValue ' )
127130 ->with ('user123 ' , 'calendar ' , 'timezone ' , 'defaultTimezone ' )
128131 ->willReturn ('Europe/Berlin ' );
129- $ this ->config ->expects ($ this ->at (15 ))
132+ $ this ->config ->expects ($ this ->at (16 ))
130133 ->method ('getUserValue ' )
131134 ->with ('user123 ' , 'calendar ' , 'slotDuration ' , 'defaultSlotDuration ' )
132135 ->willReturn ('00:15:00 ' );
136+ $ this ->config ->expects ($ this ->at (17 ))
137+ ->method ('getUserValue ' )
138+ ->with ('user123 ' , 'calendar ' , 'showTasks ' , 'defaultShowTasks ' )
139+ ->willReturn ('00:15:00 ' );
133140 $ this ->appManager ->expects ($ this ->at (0 ))
134141 ->method ('isEnabledForUser ' )
135142 ->with ('spreed ' )
@@ -165,6 +172,9 @@ public function testIndex():void {
165172 $ this ->initialStateService ->expects ($ this ->at (9 ))
166173 ->method ('provideInitialState ' )
167174 ->with ('calendar ' , 'slot_duration ' , '00:15:00 ' );
175+ $ this ->initialStateService ->expects ($ this ->at (10 ))
176+ ->method ('provideInitialState ' )
177+ ->with ('calendar ' , 'show_tasks ' , false );
168178
169179 $ response = $ this ->controller ->index ();
170180
@@ -209,43 +219,50 @@ public function testIndexViewFix(string $savedView, string $expectedView):void {
209219 ->method ('getAppValue ' )
210220 ->with ('calendar ' , 'slotDuration ' , '00:30:00 ' )
211221 ->willReturn ('defaultSlotDuration ' );
212-
213222 $ this ->config ->expects ($ this ->at (7 ))
223+ ->method ('getAppValue ' )
224+ ->with ('calendar ' , 'showTasks ' , 'yes ' )
225+ ->willReturn ('defaultShowTasks ' );
226+ $ this ->config ->expects ($ this ->at (8 ))
214227 ->method ('getAppValue ' )
215228 ->with ('calendar ' , 'installed_version ' )
216229 ->willReturn ('1.0.0 ' );
217- $ this ->config ->expects ($ this ->at (8 ))
230+ $ this ->config ->expects ($ this ->at (9 ))
218231 ->method ('getUserValue ' )
219232 ->with ('user123 ' , 'calendar ' , 'eventLimit ' , 'defaultEventLimit ' )
220233 ->willReturn ('yes ' );
221- $ this ->config ->expects ($ this ->at (9 ))
234+ $ this ->config ->expects ($ this ->at (10 ))
222235 ->method ('getUserValue ' )
223236 ->with ('user123 ' , 'calendar ' , 'firstRun ' , 'yes ' )
224237 ->willReturn ('yes ' );
225- $ this ->config ->expects ($ this ->at (10 ))
238+ $ this ->config ->expects ($ this ->at (11 ))
226239 ->method ('getUserValue ' )
227240 ->with ('user123 ' , 'calendar ' , 'currentView ' , 'defaultCurrentView ' )
228241 ->willReturn ($ savedView );
229- $ this ->config ->expects ($ this ->at (11 ))
242+ $ this ->config ->expects ($ this ->at (12 ))
230243 ->method ('getUserValue ' )
231244 ->with ('user123 ' , 'calendar ' , 'showWeekends ' , 'defaultShowWeekends ' )
232245 ->willReturn ('yes ' );
233- $ this ->config ->expects ($ this ->at (12 ))
246+ $ this ->config ->expects ($ this ->at (13 ))
234247 ->method ('getUserValue ' )
235248 ->with ('user123 ' , 'calendar ' , 'showWeekNr ' , 'defaultShowWeekNr ' )
236249 ->willReturn ('yes ' );
237- $ this ->config ->expects ($ this ->at (13 ))
250+ $ this ->config ->expects ($ this ->at (14 ))
238251 ->method ('getUserValue ' )
239252 ->with ('user123 ' , 'calendar ' , 'skipPopover ' , 'defaultSkipPopover ' )
240253 ->willReturn ('yes ' );
241- $ this ->config ->expects ($ this ->at (14 ))
254+ $ this ->config ->expects ($ this ->at (15 ))
242255 ->method ('getUserValue ' )
243256 ->with ('user123 ' , 'calendar ' , 'timezone ' , 'defaultTimezone ' )
244257 ->willReturn ('Europe/Berlin ' );
245- $ this ->config ->expects ($ this ->at (15 ))
258+ $ this ->config ->expects ($ this ->at (16 ))
246259 ->method ('getUserValue ' )
247260 ->with ('user123 ' , 'calendar ' , 'slotDuration ' , 'defaultSlotDuration ' )
248261 ->willReturn ('00:15:00 ' );
262+ $ this ->config ->expects ($ this ->at (17 ))
263+ ->method ('getUserValue ' )
264+ ->with ('user123 ' , 'calendar ' , 'showTasks ' , 'defaultShowTasks ' )
265+ ->willReturn ('00:15:00 ' );
249266 $ this ->appManager ->expects ($ this ->at (0 ))
250267 ->method ('isEnabledForUser ' )
251268 ->with ('spreed ' )
@@ -281,6 +298,9 @@ public function testIndexViewFix(string $savedView, string $expectedView):void {
281298 $ this ->initialStateService ->expects ($ this ->at (9 ))
282299 ->method ('provideInitialState ' )
283300 ->with ('calendar ' , 'slot_duration ' , '00:15:00 ' );
301+ $ this ->initialStateService ->expects ($ this ->at (10 ))
302+ ->method ('provideInitialState ' )
303+ ->with ('calendar ' , 'show_tasks ' , false );
284304
285305 $ response = $ this ->controller ->index ();
286306
0 commit comments