1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 19:54:12 +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

@@ -79,18 +79,19 @@ abstract class phpbb_notification_submit_post_base extends phpbb_database_test_c
'allow_board_notifications' => true,
));
// Event dispatcher
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
$cache_driver = new \phpbb\cache\driver\dummy();
$cache = new \phpbb\cache\service(
$cache_driver,
$config,
$db,
$phpbb_dispatcher,
$phpbb_root_path,
$phpEx
);
// Event dispatcher
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
// Language
$lang = new \phpbb\language\language(new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx));