1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

[ticket/13713] Do not use test_case_helpers for helper test

PHPBB3-13713
This commit is contained in:
lavigor
2018-08-07 19:25:39 +03:00
committed by Marc Alexander
parent 8f21a7365d
commit de356232f3

View File

@@ -68,9 +68,17 @@ class mention_helper_test extends phpbb_database_test_case
$phpbb_container->set('auth', $auth);
$phpbb_container->set('user', $user);
$this->get_test_case_helpers()->set_s9e_services($phpbb_container);
// Create and register a mention_helper
$mention_helper = new \phpbb\textformatter\s9e\mention_helper(
$db,
$auth,
$user,
$phpbb_root_path,
$phpEx
);
$phpbb_container->set('text_formatter.s9e.mention_helper', $mention_helper);
$this->mention_helper = $phpbb_container->get('text_formatter.s9e.mention_helper');
$this->mention_helper = $mention_helper;
}
public function inject_metadata_data()