1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/16944] Update tests for adjusted environment constructor

PHPBB3-16944
This commit is contained in:
Marc Alexander
2023-11-12 15:09:22 +01:00
parent 0434bce5af
commit 3db2089208
12 changed files with 43 additions and 0 deletions

View File

@@ -116,9 +116,13 @@ abstract class phpbb_controller_common_helper_route extends phpbb_database_test_
$container = new phpbb_mock_container_builder();
$container->setParameter('core.environment', PHPBB_ENVIRONMENT);
$cache_path = $phpbb_root_path . 'cache/twig';
$log = new \phpbb\log\dummy();
$iconify_bundler = new \phpbb\assets\iconify_bundler($log);
$assets_bag = new \phpbb\template\assets_bag($iconify_bundler);
$context = new \phpbb\template\context();
$loader = new \phpbb\template\twig\loader('');
$twig = new \phpbb\template\twig\environment(
$assets_bag,
$this->config,
$this->filesystem,
$this->phpbb_path_helper,