aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Config/TestConfigLexicon_I.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Config/TestConfigLexicon_I.php')
-rw-r--r--tests/lib/Config/TestConfigLexicon_I.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/lib/Config/TestConfigLexicon_I.php b/tests/lib/Config/TestConfigLexicon_I.php
index 6fb7921b6e6..077a55bb4fa 100644
--- a/tests/lib/Config/TestConfigLexicon_I.php
+++ b/tests/lib/Config/TestConfigLexicon_I.php
@@ -8,33 +8,33 @@ declare(strict_types=1);
namespace Tests\lib\Config;
-use NCU\Config\IUserConfig;
-use NCU\Config\Lexicon\ConfigLexiconEntry;
-use NCU\Config\Lexicon\ConfigLexiconStrictness;
-use NCU\Config\Lexicon\IConfigLexicon;
-use NCU\Config\ValueType;
+use OCP\Config\IUserConfig;
+use OCP\Config\Lexicon\Entry;
+use OCP\Config\Lexicon\ILexicon;
+use OCP\Config\Lexicon\Strictness;
+use OCP\Config\ValueType;
use OCP\IAppConfig;
-class TestConfigLexicon_I implements IConfigLexicon {
+class TestConfigLexicon_I implements ILexicon {
public const APPID = 'lexicon_test_i';
- public function getStrictness(): ConfigLexiconStrictness {
- return ConfigLexiconStrictness::IGNORE;
+ public function getStrictness(): Strictness {
+ return Strictness::IGNORE;
}
public function getAppConfigs(): array {
return [
- new ConfigLexiconEntry('key1', ValueType::STRING, 'abcde', 'test key', true, IAppConfig::FLAG_SENSITIVE),
- new ConfigLexiconEntry('key2', ValueType::INT, 12345, 'test key', false),
- new ConfigLexiconEntry('key3', ValueType::INT, 12345, 'test key', true, rename: 'old_key3'),
- new ConfigLexiconEntry('key4', ValueType::BOOL, 12345, 'test key', true, rename: 'old_key4', options: ConfigLexiconEntry::RENAME_INVERT_BOOLEAN),
+ new Entry('key1', ValueType::STRING, 'abcde', 'test key', true, IAppConfig::FLAG_SENSITIVE),
+ new Entry('key2', ValueType::INT, 12345, 'test key', false),
+ new Entry('key3', ValueType::INT, 12345, 'test key', true, rename: 'old_key3'),
+ new Entry('key4', ValueType::BOOL, 12345, 'test key', true, rename: 'old_key4', options: Entry::RENAME_INVERT_BOOLEAN),
];
}
public function getUserConfigs(): array {
return [
- new ConfigLexiconEntry('key1', ValueType::STRING, 'abcde', 'test key', true, IUserConfig::FLAG_SENSITIVE),
- new ConfigLexiconEntry('key2', ValueType::INT, 12345, 'test key', false)
+ new Entry('key1', ValueType::STRING, 'abcde', 'test key', true, IUserConfig::FLAG_SENSITIVE),
+ new Entry('key2', ValueType::INT, 12345, 'test key', false)
];
}