mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12620] Fix session tests
PHPBB3-12620
This commit is contained in:
parent
6019e51fed
commit
91daa73663
2 changed files with 6 additions and 0 deletions
|
@ -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(
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue