aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2018-10-01 13:56:37 -0700
committerMatt Friedman <maf675@gmail.com>2018-10-01 13:56:37 -0700
commit4a2b12a0c8d7fc3761dde815ca3cfd5685c6a8c6 (patch)
tree29afae0ad73b96803aa803846505f0b9babdfb7e /tests/test_framework
parent7c839470b7cf0942758feccdc70c083aacec2699 (diff)
downloadforums-4a2b12a0c8d7fc3761dde815ca3cfd5685c6a8c6.tar
forums-4a2b12a0c8d7fc3761dde815ca3cfd5685c6a8c6.tar.gz
forums-4a2b12a0c8d7fc3761dde815ca3cfd5685c6a8c6.tar.bz2
forums-4a2b12a0c8d7fc3761dde815ca3cfd5685c6a8c6.tar.xz
forums-4a2b12a0c8d7fc3761dde815ca3cfd5685c6a8c6.zip
[ticket/15824] Fix cache initialization in UI framework
PHPBB3-15824
Diffstat (limited to 'tests/test_framework')
-rw-r--r--tests/test_framework/phpbb_ui_test_case.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_ui_test_case.php b/tests/test_framework/phpbb_ui_test_case.php
index d38d14f45c..72d15ae0b0 100644
--- a/tests/test_framework/phpbb_ui_test_case.php
+++ b/tests/test_framework/phpbb_ui_test_case.php
@@ -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;
}