1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 00:37:42 +02:00

[ticket/17135] Introduce Symfony Mailer for emails backend

PHPBB3-17135
This commit is contained in:
rxu
2023-05-05 19:59:45 +07:00
parent 4d61c52a46
commit df5ab5b5d8
4 changed files with 432 additions and 1297 deletions

View File

@@ -70,6 +70,7 @@ class phpbb_email_parsing_test extends phpbb_test_case
$phpbb_container->set('assets.bag', $assets_bag);
$context = new \phpbb\template\context();
$dispatcher = new \phpbb\event\dispatcher();
$twig = new \phpbb\template\twig\environment(
$assets_bag,
$config,
@@ -78,7 +79,7 @@ class phpbb_email_parsing_test extends phpbb_test_case
$cache_path,
null,
new \phpbb\template\twig\loader(''),
new \phpbb\event\dispatcher(),
$dispatcher,
array(
'cache' => false,
'debug' => false,
@@ -95,6 +96,16 @@ class phpbb_email_parsing_test extends phpbb_test_case
$twig->addExtension($twig_extension);
$phpbb_container->set('template.twig.lexer', new \phpbb\template\twig\lexer($twig));
$phpbb_container->set('dispatcher', $dispatcher);
$phpbb_container->set('language', $lang);
$phpbb_container->set('request', $request);
$db = $this->getMockBuilder('\phpbb\db\driver\mysqli')
->disableOriginalConstructor()
->getMock();
$auth = $this->createMock('\phpbb\auth\auth');
$log = new \phpbb\log\log($db, $user, $auth, $dispatcher, $phpbb_root_path, 'adm/', $phpEx, LOG_TABLE);
$phpbb_container->set('log', $log);
if (!class_exists('messenger'))
{