[ticket/13713] Fix current issues with tests

PHPBB3-13713
This commit is contained in:
lavigor 2018-06-24 04:41:43 +03:00 committed by Marc Alexander
parent 368090b7e6
commit 90ee0993e6
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 18 additions and 1 deletions

View file

@ -33,6 +33,7 @@ abstract class phpbb_tests_notification_base extends phpbb_database_test_case
'notification.type.disapprove_post',
'notification.type.disapprove_topic',
'notification.type.forum',
'notification.type.mention',
'notification.type.pm',
'notification.type.post',
'notification.type.post_in_queue',
@ -105,6 +106,14 @@ abstract class phpbb_tests_notification_base extends phpbb_database_test_case
$phpbb_container->set('cache.driver', $cache_driver);
$phpbb_container->set('cache', $cache);
$phpbb_container->set('text_formatter.utils', new \phpbb\textformatter\s9e\utils());
$phpbb_container->set(
'text_formatter.s9e.mention_helper',
new \phpbb\textformatter\s9e\mention_helper(
$this->db,
$phpbb_root_path,
$phpEx
)
);
$phpbb_container->set('dispatcher', $this->phpbb_dispatcher);
$phpbb_container->setParameter('core.root_path', $phpbb_root_path);
$phpbb_container->setParameter('core.php_ext', $phpEx);

View file

@ -132,6 +132,14 @@ abstract class phpbb_notification_submit_post_base extends phpbb_database_test_c
$phpbb_container->set('cache.driver', $cache_driver);
$phpbb_container->set('cache', $cache);
$phpbb_container->set('text_formatter.utils', new \phpbb\textformatter\s9e\utils());
$phpbb_container->set(
'text_formatter.s9e.mention_helper',
new \phpbb\textformatter\s9e\mention_helper(
$this->db,
$phpbb_root_path,
$phpEx
)
);
$phpbb_container->set('dispatcher', $phpbb_dispatcher);
$phpbb_container->set('storage.attachment', $storage);
$phpbb_container->setParameter('core.root_path', $phpbb_root_path);
@ -145,7 +153,7 @@ abstract class phpbb_notification_submit_post_base extends phpbb_database_test_c
$phpbb_container->compile();
// Notification Types
$notification_types = array('quote', 'bookmark', 'post', 'post_in_queue', 'topic', 'topic_in_queue', 'approve_topic', 'approve_post', 'forum');
$notification_types = array('quote', 'mention', 'bookmark', 'post', 'post_in_queue', 'topic', 'topic_in_queue', 'approve_topic', 'approve_post', 'forum');
$notification_types_array = array();
foreach ($notification_types as $type)
{