aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/utils/FakeConfigManager.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2017-11-08 20:24:49 +0100
committerVirtualTam <virtualtam@flibidi.net>2017-11-08 20:26:03 +0100
commitdd883aaf0999e9dc783a1a19bfeeab181c949d55 (patch)
tree8cd606b71d846c65cf1b8ad4b577c86c0171987e /tests/utils/FakeConfigManager.php
parentb14d34d2c7b7a7360adcc823472a43f64b579e1c (diff)
downloadShaarli-dd883aaf0999e9dc783a1a19bfeeab181c949d55.tar.gz
Shaarli-dd883aaf0999e9dc783a1a19bfeeab181c949d55.tar.zst
Shaarli-dd883aaf0999e9dc783a1a19bfeeab181c949d55.zip
Improve SessionManager constructor and tests
Relates to https://github.com/shaarli/Shaarli/pull/1005 Changed: - pass a copy of the ConfigManager instance instead of a reference - move FakeConfigManager to a dedicated file - update tests 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
new file mode 100644
index 00000000..f29760cb
--- /dev/null
+++ b/tests/utils/FakeConfigManager.php
@@ -0,0 +1,12 @@
1<?php
2
3/**
4 * Fake ConfigManager
5 */
6class FakeConfigManager
7{
8 public static function get($key)
9 {
10 return $key;
11 }
12}