mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/13713] Use mock for ContainerBuilder in helper test
PHPBB3-13713
This commit is contained in:
parent
0c47c72cce
commit
35a81fce52
1 changed files with 1 additions and 3 deletions
|
@ -62,7 +62,7 @@ class mention_helper_test extends phpbb_database_test_case
|
|||
);
|
||||
|
||||
// Container
|
||||
$phpbb_container = new ContainerBuilder();
|
||||
$phpbb_container = new phpbb_mock_container_builder();
|
||||
|
||||
$phpbb_container->set('dbal.conn', $db);
|
||||
$phpbb_container->set('auth', $auth);
|
||||
|
@ -70,8 +70,6 @@ class mention_helper_test extends phpbb_database_test_case
|
|||
|
||||
$this->get_test_case_helpers()->set_s9e_services($phpbb_container);
|
||||
|
||||
$phpbb_container->compile();
|
||||
|
||||
$this->mention_helper = $phpbb_container->get('text_formatter.s9e.mention_helper');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue