diff options
author | mrgoldy <gijsmartens1@gmail.com> | 2018-12-09 23:52:50 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-09-25 20:07:09 +0200 |
commit | 7989f3f71fd665aa743d947c7487d41c6f0a33d4 (patch) | |
tree | 4d2fe00e8c520c13400c193c994bb26070ae8044 /tests/email/email_parsing_test.php | |
parent | 012fe1887963adecc30fa46b7c7069a29600666d (diff) | |
download | forums-7989f3f71fd665aa743d947c7487d41c6f0a33d4.tar forums-7989f3f71fd665aa743d947c7487d41c6f0a33d4.tar.gz forums-7989f3f71fd665aa743d947c7487d41c6f0a33d4.tar.bz2 forums-7989f3f71fd665aa743d947c7487d41c6f0a33d4.tar.xz forums-7989f3f71fd665aa743d947c7487d41c6f0a33d4.zip |
[ticket/15905] Try with existing phpbb extension
PHPBB3-15905
Diffstat (limited to 'tests/email/email_parsing_test.php')
-rw-r--r-- | tests/email/email_parsing_test.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/email/email_parsing_test.php b/tests/email/email_parsing_test.php index 629df9abb6..1b5c6aaa8c 100644 --- a/tests/email/email_parsing_test.php +++ b/tests/email/email_parsing_test.php @@ -66,7 +66,15 @@ class phpbb_email_parsing_test extends phpbb_test_case ); $phpbb_container->set('ext.manager', $extension_manager); + $auth = $this->getMock('\phpbb\auth\auth'); $context = new \phpbb\template\context(); + $twig_extension = new \phpbb\template\twig\extension($auth, $context, $lang); + $phpbb_container->set('template.twig.extensions.phpbb', $twig_extension); + + $twig_extensions_collection = new \phpbb\di\service_collection($phpbb_container); + $twig_extensions_collection->add('template.twig.extensions.phpbb'); + $phpbb_container->set('template.twig.extensions.collection', $twig_extensions_collection); + $twig = new \phpbb\template\twig\environment( $config, $filesystem, |