1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 03:04:09 +02:00

[ticket/16891] Update test files to work with changed cache service

PHPBB3-16891
This commit is contained in:
Marc Alexander
2022-01-28 21:58:32 +01:00
parent 9dc25510a1
commit 7992b3f476
15 changed files with 36 additions and 21 deletions

View File

@@ -58,6 +58,10 @@ class phpbb_session_check_ban_test extends phpbb_session_test_case
$phpbb_filesystem = new \phpbb\filesystem\filesystem();
$this->backup_cache = $cache;
// Event dispatcher
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
// Change the global cache object for this test because
// the mock cache object does not hit the database as is needed
// for this test.
@@ -65,6 +69,7 @@ class phpbb_session_check_ban_test extends phpbb_session_test_case
new \phpbb\cache\driver\file(),
$config,
$this->db,
$phpbb_dispatcher,
$phpbb_root_path,
$phpEx
);