@@ -233,19 +233,30 @@ public function testSave(): void
233233
234234 // Initial save with 2fa
235235 $ initialConfig = [
236+ 'CharEditing ' => 'textarea ' ,
236237 '2fa ' => ['backend ' => 'application ' , 'settings ' => ['secret ' => 'thisisasecret ' ]],
237- 'theme ' => 'dark ' ,
238+ 'RowActionLinks ' => 'both ' ,
239+ 'TableNavigationLinksMode ' => 'both ' ,
238240 ];
239241 $ this ->userPreferences ->save ($ initialConfig );
240242
241243 // Partial save without 2fa
242- $ partialConfig = ['Console/Mode ' => 'collapse ' ];
244+ $ partialConfig = [
245+ 'CharEditing ' => 'textarea ' ,
246+ 'TableNavigationLinksMode ' => 'text ' ,
247+ 'Console/Mode ' => 'collapse ' ,
248+ ];
243249 $ this ->userPreferences ->save ($ partialConfig );
244250
245251 // Check that 2fa is still present
246252 $ resultConfig = $ _SESSION ['userconfig ' ]['db ' ];
247- self ::assertSame ('thisisasecret ' , $ resultConfig ['2fa ' ]['settings ' ]['secret ' ]);
248- self ::assertSame ('collapse ' , $ resultConfig ['Console/Mode ' ]);
253+ $ expected = [
254+ 'CharEditing ' => 'textarea ' ,
255+ 'TableNavigationLinksMode ' => 'text ' ,
256+ 'Console/Mode ' => 'collapse ' ,
257+ '2fa ' => ['backend ' => 'application ' , 'settings ' => ['secret ' => 'thisisasecret ' ]],
258+ ];
259+ self ::assertSame ($ expected , $ resultConfig );
249260 }
250261
251262 /**
0 commit comments