aboutsummaryrefslogtreecommitdiffstats
path: root/tests/session
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2016-03-23 22:48:58 +0100
committerTristan Darricau <tristan.darricau@sensiolabs.com>2016-03-24 09:15:34 +0100
commit56c2caf6c0778c0da48fe0ac688c893777b89ee4 (patch)
tree2ed7f9cf6a26d0ea7b3f7bac255c777e36754b7c /tests/session
parenteca4726f3c2fda312b3150b7b252a300d4603fbe (diff)
downloadforums-56c2caf6c0778c0da48fe0ac688c893777b89ee4.tar
forums-56c2caf6c0778c0da48fe0ac688c893777b89ee4.tar.gz
forums-56c2caf6c0778c0da48fe0ac688c893777b89ee4.tar.bz2
forums-56c2caf6c0778c0da48fe0ac688c893777b89ee4.tar.xz
forums-56c2caf6c0778c0da48fe0ac688c893777b89ee4.zip
[ticket/14555] Uniformize cache directory usages
PHPBB3-14555
Diffstat (limited to 'tests/session')
-rw-r--r--tests/session/testable_factory.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/session/testable_factory.php b/tests/session/testable_factory.php
index 7819063505..6f8b49122b 100644
--- a/tests/session/testable_factory.php
+++ b/tests/session/testable_factory.php
@@ -73,7 +73,7 @@ class phpbb_session_testable_factory
public function get_session(\phpbb\db\driver\driver_interface $dbal)
{
// set up all the global variables used by session
- global $SID, $_SID, $db, $config, $cache, $request, $phpbb_container;
+ global $SID, $_SID, $db, $config, $cache, $request, $phpbb_container, $phpbb_root_path;
$request = $this->request = new phpbb_mock_request(
array(),
@@ -95,6 +95,7 @@ class phpbb_session_testable_factory
new phpbb_mock_auth_provider()
);
$phpbb_container->setParameter('core.environment', PHPBB_ENVIRONMENT);
+ $phpbb_container->setParameter('core.cache_dir', $phpbb_root_path . 'cache/' . PHPBB_ENVIRONMENT . '/');
$provider_collection = new \phpbb\auth\provider_collection($phpbb_container, $config);
$provider_collection->add('auth.provider.db');
$phpbb_container->set(