mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
[ticket/16944] Update tests for adjusted environment constructor
PHPBB3-16944
This commit is contained in:
parent
0434bce5af
commit
3db2089208
12 changed files with 43 additions and 0 deletions
|
@ -162,6 +162,7 @@ class bbcode
|
||||||
$phpbb_container->get('config'),
|
$phpbb_container->get('config'),
|
||||||
new \phpbb\template\context(),
|
new \phpbb\template\context(),
|
||||||
new \phpbb\template\twig\environment(
|
new \phpbb\template\twig\environment(
|
||||||
|
$phpbb_container->get('assets.bag'),
|
||||||
$phpbb_container->get('config'),
|
$phpbb_container->get('config'),
|
||||||
$phpbb_container->get('filesystem'),
|
$phpbb_container->get('filesystem'),
|
||||||
$phpbb_container->get('path_helper'),
|
$phpbb_container->get('path_helper'),
|
||||||
|
|
|
@ -737,6 +737,7 @@ class messenger
|
||||||
}
|
}
|
||||||
|
|
||||||
$template_environment = new \phpbb\template\twig\environment(
|
$template_environment = new \phpbb\template\twig\environment(
|
||||||
|
$phpbb_container->get('assets.bag'),
|
||||||
$phpbb_container->get('config'),
|
$phpbb_container->get('config'),
|
||||||
$phpbb_container->get('filesystem'),
|
$phpbb_container->get('filesystem'),
|
||||||
$phpbb_container->get('path_helper'),
|
$phpbb_container->get('path_helper'),
|
||||||
|
|
|
@ -116,9 +116,13 @@ abstract class phpbb_controller_common_helper_route extends phpbb_database_test_
|
||||||
$container = new phpbb_mock_container_builder();
|
$container = new phpbb_mock_container_builder();
|
||||||
$container->setParameter('core.environment', PHPBB_ENVIRONMENT);
|
$container->setParameter('core.environment', PHPBB_ENVIRONMENT);
|
||||||
$cache_path = $phpbb_root_path . 'cache/twig';
|
$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();
|
$context = new \phpbb\template\context();
|
||||||
$loader = new \phpbb\template\twig\loader('');
|
$loader = new \phpbb\template\twig\loader('');
|
||||||
$twig = new \phpbb\template\twig\environment(
|
$twig = new \phpbb\template\twig\environment(
|
||||||
|
$assets_bag,
|
||||||
$this->config,
|
$this->config,
|
||||||
$this->filesystem,
|
$this->filesystem,
|
||||||
$this->phpbb_path_helper,
|
$this->phpbb_path_helper,
|
||||||
|
|
|
@ -66,8 +66,13 @@ class phpbb_email_parsing_test extends phpbb_test_case
|
||||||
);
|
);
|
||||||
$phpbb_container->set('ext.manager', $extension_manager);
|
$phpbb_container->set('ext.manager', $extension_manager);
|
||||||
|
|
||||||
|
$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();
|
$context = new \phpbb\template\context();
|
||||||
$twig = new \phpbb\template\twig\environment(
|
$twig = new \phpbb\template\twig\environment(
|
||||||
|
$assets_bag,
|
||||||
$config,
|
$config,
|
||||||
$filesystem,
|
$filesystem,
|
||||||
$phpbb_path_helper,
|
$phpbb_path_helper,
|
||||||
|
|
|
@ -66,7 +66,11 @@ class phpbb_extension_metadata_manager_test extends phpbb_database_test_case
|
||||||
$this->phpbb_root_path,
|
$this->phpbb_root_path,
|
||||||
$this->phpEx
|
$this->phpEx
|
||||||
);
|
);
|
||||||
|
$log = new \phpbb\log\dummy();
|
||||||
|
$iconify_bundler = new \phpbb\assets\iconify_bundler($log);
|
||||||
|
$assets_bag = new \phpbb\template\assets_bag($iconify_bundler);
|
||||||
$twig = new \phpbb\template\twig\environment(
|
$twig = new \phpbb\template\twig\environment(
|
||||||
|
$assets_bag,
|
||||||
$this->config,
|
$this->config,
|
||||||
$filesystem,
|
$filesystem,
|
||||||
$phpbb_path_helper,
|
$phpbb_path_helper,
|
||||||
|
|
|
@ -95,7 +95,11 @@ class phpbb_template_extension_test extends phpbb_template_template_test_case
|
||||||
$cache_path = $phpbb_root_path . 'cache/twig';
|
$cache_path = $phpbb_root_path . 'cache/twig';
|
||||||
$context = new \phpbb\template\context();
|
$context = new \phpbb\template\context();
|
||||||
$loader = new \phpbb\template\twig\loader([]);
|
$loader = new \phpbb\template\twig\loader([]);
|
||||||
|
$log = new \phpbb\log\dummy();
|
||||||
|
$iconify_bundler = new \phpbb\assets\iconify_bundler($log);
|
||||||
|
$assets_bag = new \phpbb\template\assets_bag($iconify_bundler);
|
||||||
$twig = new \phpbb\template\twig\environment(
|
$twig = new \phpbb\template\twig\environment(
|
||||||
|
$assets_bag,
|
||||||
$config,
|
$config,
|
||||||
$filesystem,
|
$filesystem,
|
||||||
$phpbb_path_helper,
|
$phpbb_path_helper,
|
||||||
|
|
|
@ -58,7 +58,11 @@ class phpbb_template_allfolder_test extends phpbb_template_template_test_case
|
||||||
$cache_path = $phpbb_root_path . 'cache/twig';
|
$cache_path = $phpbb_root_path . 'cache/twig';
|
||||||
$context = new \phpbb\template\context();
|
$context = new \phpbb\template\context();
|
||||||
$loader = new \phpbb\template\twig\loader('');
|
$loader = new \phpbb\template\twig\loader('');
|
||||||
|
$log = new \phpbb\log\dummy();
|
||||||
|
$iconify_bundler = new \phpbb\assets\iconify_bundler($log);
|
||||||
|
$assets_bag = new \phpbb\template\assets_bag($iconify_bundler);
|
||||||
$twig = new \phpbb\template\twig\environment(
|
$twig = new \phpbb\template\twig\environment(
|
||||||
|
$assets_bag,
|
||||||
$config,
|
$config,
|
||||||
$filesystem,
|
$filesystem,
|
||||||
$path_helper,
|
$path_helper,
|
||||||
|
|
|
@ -152,7 +152,11 @@ Zeta test event in all',
|
||||||
$cache_path = $phpbb_root_path . 'cache/twig';
|
$cache_path = $phpbb_root_path . 'cache/twig';
|
||||||
$context = new \phpbb\template\context();
|
$context = new \phpbb\template\context();
|
||||||
$loader = new \phpbb\template\twig\loader('');
|
$loader = new \phpbb\template\twig\loader('');
|
||||||
|
$log = new \phpbb\log\dummy();
|
||||||
|
$iconify_bundler = new \phpbb\assets\iconify_bundler($log);
|
||||||
|
$assets_bag = new \phpbb\template\assets_bag($iconify_bundler);
|
||||||
$twig = new \phpbb\template\twig\environment(
|
$twig = new \phpbb\template\twig\environment(
|
||||||
|
$assets_bag,
|
||||||
$config,
|
$config,
|
||||||
$filesystem,
|
$filesystem,
|
||||||
$path_helper,
|
$path_helper,
|
||||||
|
|
|
@ -44,7 +44,11 @@ class phpbb_template_template_includecss_test extends phpbb_template_template_te
|
||||||
$cache_path = $phpbb_root_path . 'cache/twig';
|
$cache_path = $phpbb_root_path . 'cache/twig';
|
||||||
$context = new \phpbb\template\context();
|
$context = new \phpbb\template\context();
|
||||||
$loader = new \phpbb\template\twig\loader('');
|
$loader = new \phpbb\template\twig\loader('');
|
||||||
|
$log = new \phpbb\log\dummy();
|
||||||
|
$iconify_bundler = new \phpbb\assets\iconify_bundler($log);
|
||||||
|
$assets_bag = new \phpbb\template\assets_bag($iconify_bundler);
|
||||||
$twig = new \phpbb\template\twig\environment(
|
$twig = new \phpbb\template\twig\environment(
|
||||||
|
$assets_bag,
|
||||||
$config,
|
$config,
|
||||||
$filesystem,
|
$filesystem,
|
||||||
$this->phpbb_path_helper,
|
$this->phpbb_path_helper,
|
||||||
|
|
|
@ -95,7 +95,11 @@ class phpbb_template_template_test_case extends phpbb_test_case
|
||||||
$cache_path = $phpbb_root_path . 'cache/twig';
|
$cache_path = $phpbb_root_path . 'cache/twig';
|
||||||
$context = new \phpbb\template\context();
|
$context = new \phpbb\template\context();
|
||||||
$loader = new \phpbb\template\twig\loader('');
|
$loader = new \phpbb\template\twig\loader('');
|
||||||
|
$log = new \phpbb\log\dummy();
|
||||||
|
$iconify_bundler = new \phpbb\assets\iconify_bundler($log);
|
||||||
|
$assets_bag = new \phpbb\template\assets_bag($iconify_bundler);
|
||||||
$twig = new \phpbb\template\twig\environment(
|
$twig = new \phpbb\template\twig\environment(
|
||||||
|
$assets_bag,
|
||||||
$config,
|
$config,
|
||||||
$filesystem,
|
$filesystem,
|
||||||
$path_helper,
|
$path_helper,
|
||||||
|
|
|
@ -45,7 +45,11 @@ class phpbb_template_template_test_case_with_tree extends phpbb_template_templat
|
||||||
$cache_path = $phpbb_root_path . 'cache/twig';
|
$cache_path = $phpbb_root_path . 'cache/twig';
|
||||||
$context = new \phpbb\template\context();
|
$context = new \phpbb\template\context();
|
||||||
$loader = new \phpbb\template\twig\loader('');
|
$loader = new \phpbb\template\twig\loader('');
|
||||||
|
$log = new \phpbb\log\dummy();
|
||||||
|
$iconify_bundler = new \phpbb\assets\iconify_bundler($log);
|
||||||
|
$assets_bag = new \phpbb\template\assets_bag($iconify_bundler);
|
||||||
$twig = new \phpbb\template\twig\environment(
|
$twig = new \phpbb\template\twig\environment(
|
||||||
|
$assets_bag,
|
||||||
$config,
|
$config,
|
||||||
$filesystem,
|
$filesystem,
|
||||||
$this->phpbb_path_helper,
|
$this->phpbb_path_helper,
|
||||||
|
|
|
@ -63,7 +63,11 @@ class twig_test extends \phpbb_test_case
|
||||||
$cache_path = $phpbb_root_path . 'cache/twig';
|
$cache_path = $phpbb_root_path . 'cache/twig';
|
||||||
$context = new \phpbb\template\context();
|
$context = new \phpbb\template\context();
|
||||||
$loader = new \phpbb\template\twig\loader('');
|
$loader = new \phpbb\template\twig\loader('');
|
||||||
|
$log = new \phpbb\log\dummy();
|
||||||
|
$iconify_bundler = new \phpbb\assets\iconify_bundler($log);
|
||||||
|
$assets_bag = new \phpbb\template\assets_bag($iconify_bundler);
|
||||||
$twig = new \phpbb\template\twig\environment(
|
$twig = new \phpbb\template\twig\environment(
|
||||||
|
$assets_bag,
|
||||||
$config,
|
$config,
|
||||||
$filesystem,
|
$filesystem,
|
||||||
$path_helper,
|
$path_helper,
|
||||||
|
|
Loading…
Add table
Reference in a new issue