mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 11:58:53 +00:00
[ticket/15824] Fix cache initialization in UI framework
PHPBB3-15824
This commit is contained in:
parent
7c839470b7
commit
4a2b12a0c8
1 changed files with 6 additions and 0 deletions
|
@ -338,6 +338,12 @@ class phpbb_ui_test_case extends phpbb_test_case
|
||||||
{
|
{
|
||||||
if (!$this->cache)
|
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;
|
$this->cache = new \phpbb\cache\driver\file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue