aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/utils/FakeConfigManager.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2018-05-06 17:12:48 +0200
committerVirtualTam <virtualtam@flibidi.net>2018-06-02 16:46:26 +0200
commit704637bfebc73ada4b800b35c457e9fe56ad3567 (patch)
tree3ed5a775efc2ed3187e9ce9517c1fbd1cfabcb3c /tests/utils/FakeConfigManager.php
parentebf615173824a46de82fa97a165bcfd883db15ce (diff)
downloadShaarli-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.php12
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}