mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-21 16:22:22 +02:00
[ticket/15824] Fix cache initialization in UI framework
PHPBB3-15824
This commit is contained in:
parent
7c839470b7
commit
4a2b12a0c8
@ -338,6 +338,12 @@ class phpbb_ui_test_case extends phpbb_test_case
|
||||
{
|
||||
if (!$this->cache)
|
||||
{
|
||||
global $phpbb_container, $phpbb_root_path;
|
||||
|
||||
$phpbb_container = new phpbb_mock_container_builder();
|
||||
$phpbb_container->setParameter('core.environment', PHPBB_ENVIRONMENT);
|
||||
$phpbb_container->setParameter('core.cache_dir', $phpbb_root_path . 'cache/' . PHPBB_ENVIRONMENT . '/');
|
||||
|
||||
$this->cache = new \phpbb\cache\driver\file;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user