1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-08 07:27:17 +02:00

[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', 'auth.provider.db',
new phpbb_mock_auth_provider() new phpbb_mock_auth_provider()
); );
$phpbb_container->setParameter('core.environment', PHPBB_ENVIRONMENT);
$provider_collection = new \phpbb\auth\provider_collection($phpbb_container, $config); $provider_collection = new \phpbb\auth\provider_collection($phpbb_container, $config);
$provider_collection->add('auth.provider.db'); $provider_collection->add('auth.provider.db');
$phpbb_container->set( $phpbb_container->set(

View File

@ -204,6 +204,11 @@ class phpbb_functional_test_case extends phpbb_test_case
{ {
if (!$this->cache) 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; $this->cache = new \phpbb\cache\driver\file;
} }