aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/utils/FakeConfigManager.php
diff options
context:
space:
mode:
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}