1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 16:27:38 +02: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:
toxyy
2023-12-03 16:57:24 -05:00
committed by rxu
parent d934c8c4b7
commit 59b482a222

View File

@@ -87,7 +87,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);