]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tests/utils/FakeConfigManager.php
Add test coverage for LoginManager methods
[github/shaarli/Shaarli.git] / tests / utils / FakeConfigManager.php
index 85434de7b528861c436c430fff555013397dac95..360b34a981c91d797d29d769dd858bb1c032a36a 100644 (file)
@@ -42,4 +42,16 @@ class FakeConfigManager
         }
         return $key;
     }
+
+    /**
+     * Check if a setting exists
+     *
+     * @param string $setting Asked setting, keys separated with dots
+     *
+     * @return bool true if the setting exists, false otherwise
+     */
+    public function exists($setting)
+    {
+        return array_key_exists($setting, $this->values);
+    }
 }