mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 04:18:55 +00:00
[ticket/15214] Test fix for test_bbcode_firstpass
Add new dispatch parameter to the template\twig\extension call PHPBB3-15214
This commit is contained in:
parent
12fd385a4c
commit
2c1e43a834
1 changed files with 3 additions and 2 deletions
|
@ -68,6 +68,7 @@ class phpbb_email_parsing_test extends phpbb_test_case
|
||||||
$phpbb_container->set('ext.manager', $extension_manager);
|
$phpbb_container->set('ext.manager', $extension_manager);
|
||||||
|
|
||||||
$context = new \phpbb\template\context();
|
$context = new \phpbb\template\context();
|
||||||
|
$dispatcher = new \phpbb\event\dispatcher($phpbb_container);
|
||||||
$twig = new \phpbb\template\twig\environment(
|
$twig = new \phpbb\template\twig\environment(
|
||||||
$config,
|
$config,
|
||||||
$filesystem,
|
$filesystem,
|
||||||
|
@ -75,7 +76,7 @@ class phpbb_email_parsing_test extends phpbb_test_case
|
||||||
$cache_path,
|
$cache_path,
|
||||||
null,
|
null,
|
||||||
new \phpbb\template\twig\loader($filesystem, ''),
|
new \phpbb\template\twig\loader($filesystem, ''),
|
||||||
new \phpbb\event\dispatcher($phpbb_container),
|
$dispatcher,
|
||||||
array(
|
array(
|
||||||
'cache' => false,
|
'cache' => false,
|
||||||
'debug' => false,
|
'debug' => false,
|
||||||
|
@ -83,7 +84,7 @@ class phpbb_email_parsing_test extends phpbb_test_case
|
||||||
'autoescape' => false,
|
'autoescape' => false,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$twig_extension = new \phpbb\template\twig\extension($context, $twig, $lang);
|
$twig_extension = new \phpbb\template\twig\extension($context, $twig, $lang, $dispatcher);
|
||||||
$phpbb_container->set('template.twig.extensions.phpbb', $twig_extension);
|
$phpbb_container->set('template.twig.extensions.phpbb', $twig_extension);
|
||||||
|
|
||||||
$twig_extensions_collection = new \phpbb\di\service_collection($phpbb_container);
|
$twig_extensions_collection = new \phpbb\di\service_collection($phpbb_container);
|
||||||
|
|
Loading…
Add table
Reference in a new issue