diff options
author | VirtualTam <virtualtam@flibidi.net> | 2018-05-06 17:12:48 +0200 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2018-06-02 16:46:26 +0200 |
commit | 704637bfebc73ada4b800b35c457e9fe56ad3567 (patch) | |
tree | 3ed5a775efc2ed3187e9ce9517c1fbd1cfabcb3c /tests/utils/FakeConfigManager.php | |
parent | ebf615173824a46de82fa97a165bcfd883db15ce (diff) | |
download | Shaarli-704637bfebc73ada4b800b35c457e9fe56ad3567.tar.gz Shaarli-704637bfebc73ada4b800b35c457e9fe56ad3567.tar.zst Shaarli-704637bfebc73ada4b800b35c457e9fe56ad3567.zip |
Add test coverage for LoginManager methods
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'tests/utils/FakeConfigManager.php')
-rw-r--r-- | tests/utils/FakeConfigManager.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/utils/FakeConfigManager.php b/tests/utils/FakeConfigManager.php index 85434de7..360b34a9 100644 --- a/tests/utils/FakeConfigManager.php +++ b/tests/utils/FakeConfigManager.php | |||
@@ -42,4 +42,16 @@ class FakeConfigManager | |||
42 | } | 42 | } |
43 | return $key; | 43 | return $key; |
44 | } | 44 | } |
45 | |||
46 | /** | ||
47 | * Check if a setting exists | ||
48 | * | ||
49 | * @param string $setting Asked setting, keys separated with dots | ||
50 | * | ||
51 | * @return bool true if the setting exists, false otherwise | ||
52 | */ | ||
53 | public function exists($setting) | ||
54 | { | ||
55 | return array_key_exists($setting, $this->values); | ||
56 | } | ||
45 | } | 57 | } |