1010use OC \AppConfig ;
1111use OC \AppFramework \Bootstrap \Coordinator ;
1212use OC \Config \ConfigManager ;
13- use OC \Config \PresetManager ;
1413use OCP \App \IAppManager ;
1514use OCP \Config \Exceptions \TypeConflictException ;
1615use OCP \Config \Exceptions \UnknownKeyException ;
1716use OCP \Config \IUserConfig ;
18- use OCP \Config \Lexicon \Preset ;
1917use OCP \Exceptions \AppConfigTypeConflictException ;
2018use OCP \Exceptions \AppConfigUnknownKeyException ;
2119use OCP \IAppConfig ;
@@ -34,7 +32,6 @@ class LexiconTest extends TestCase {
3432 private IAppConfig $ appConfig ;
3533 private IUserConfig $ userConfig ;
3634 private ConfigManager $ configManager ;
37- private PresetManager $ presetManager ;
3835 private IAppManager $ appManager ;
3936
4037 protected function setUp (): void {
@@ -49,7 +46,6 @@ protected function setUp(): void {
4946 $ this ->appConfig = Server::get (IAppConfig::class);
5047 $ this ->userConfig = Server::get (IUserConfig::class);
5148 $ this ->configManager = Server::get (ConfigManager::class);
52- $ this ->presetManager = Server::get (PresetManager::class);
5349 $ this ->appManager = Server::get (IAppManager::class);
5450 }
5551
@@ -215,30 +211,6 @@ public function testAppConfigLexiconRenameInvertBoolean() {
215211 $ this ->assertSame (false , $ this ->appConfig ->getValueBool (TestConfigLexicon_I::APPID , 'key4 ' ));
216212 }
217213
218- public function testAppConfigLexiconPreset () {
219- $ this ->presetManager ->setLexiconPreset (Preset::FAMILY );
220- $ this ->assertSame ('family ' , $ this ->appConfig ->getValueString (TestLexicon_E::APPID , 'key3 ' ));
221- }
222-
223- public function testAppConfigLexiconPresets () {
224- $ this ->presetManager ->setLexiconPreset (Preset::MEDIUM );
225- $ this ->assertSame ('club+medium ' , $ this ->appConfig ->getValueString (TestLexicon_E::APPID , 'key3 ' ));
226- $ this ->presetManager ->setLexiconPreset (Preset::FAMILY );
227- $ this ->assertSame ('family ' , $ this ->appConfig ->getValueString (TestLexicon_E::APPID , 'key3 ' ));
228- }
229-
230- public function testUserConfigLexiconPreset () {
231- $ this ->presetManager ->setLexiconPreset (Preset::FAMILY );
232- $ this ->assertSame ('family ' , $ this ->userConfig ->getValueString ('user1 ' , TestLexicon_E::APPID , 'key3 ' ));
233- }
234-
235- public function testUserConfigLexiconPresets () {
236- $ this ->presetManager ->setLexiconPreset (Preset::MEDIUM );
237- $ this ->assertSame ('club+medium ' , $ this ->userConfig ->getValueString ('user1 ' , TestLexicon_E::APPID , 'key3 ' ));
238- $ this ->presetManager ->setLexiconPreset (Preset::FAMILY );
239- $ this ->assertSame ('family ' , $ this ->userConfig ->getValueString ('user1 ' , TestLexicon_E::APPID , 'key3 ' ));
240- }
241-
242214 public function testLexiconIndexedUpdate () {
243215 $ this ->userConfig ->setValueString ('user1 ' , TestLexicon_UserIndexed::APPID , 'key1 ' , 'abcd ' );
244216 $ this ->userConfig ->setValueString ('user2 ' , TestLexicon_UserIndexed::APPID , 'key1 ' , '1234 ' , flags: 64 );
0 commit comments