diff options
Diffstat (limited to 'tests/lib/Config/TestLexicon_W.php')
-rw-r--r-- | tests/lib/Config/TestLexicon_W.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/lib/Config/TestLexicon_W.php b/tests/lib/Config/TestLexicon_W.php new file mode 100644 index 00000000000..32227eb1c80 --- /dev/null +++ b/tests/lib/Config/TestLexicon_W.php @@ -0,0 +1,39 @@ +<?php + +declare(strict_types=1); +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-only + */ + +namespace Tests\lib\Config; + +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 TestLexicon_W implements ILexicon { + public const APPID = 'lexicon_test_w'; + + public function getStrictness(): Strictness { + return Strictness::WARNING; + } + + public function getAppConfigs(): array { + return [ + new Entry('key1', ValueType::STRING, 'abcde', 'test key', true, IAppConfig::FLAG_SENSITIVE), + new Entry('key2', ValueType::INT, 12345, 'test key', false) + + ]; + } + + public function getUserConfigs(): array { + return [ + new Entry('key1', ValueType::STRING, 'abcde', 'test key', true, IUserConfig::FLAG_SENSITIVE), + new Entry('key2', ValueType::INT, 12345, 'test key', false) ]; + } + +} |