[ticket/12620] Fix session tests

PHPBB3-12620
This commit is contained in:
Tristan Darricau 2014-11-19 18:08:31 +01:00
parent 6019e51fed
commit 91daa73663
2 changed files with 6 additions and 0 deletions

View file

@ -96,6 +96,7 @@ class phpbb_session_testable_factory
'auth.provider.db',
new phpbb_mock_auth_provider()
);
$phpbb_container->setParameter('core.environment', PHPBB_ENVIRONMENT);
$provider_collection = new \phpbb\auth\provider_collection($phpbb_container, $config);
$provider_collection->add('auth.provider.db');
$phpbb_container->set(

View file

@ -204,6 +204,11 @@ class phpbb_functional_test_case extends phpbb_test_case
{
if (!$this->cache)
{
global $phpbb_container;
$phpbb_container = new phpbb_mock_container_builder();
$phpbb_container->setParameter('core.environment', PHPBB_ENVIRONMENT);
$this->cache = new \phpbb\cache\driver\file;
}