1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 22:28:46 +01:00

[ticket/13489] Fix tests

PHPBB3-13489
This commit is contained in:
Tristan Darricau 2015-01-14 11:37:10 +01:00
parent c99ed64473
commit 4df125625c
3 changed files with 11 additions and 5 deletions

View File

@ -46,7 +46,10 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case
new \phpbb\db\migration\tool\config($this->config), new \phpbb\db\migration\tool\config($this->config),
); );
$container = new phpbb_mock_container_builder();
$this->migrator = new \phpbb\db\migrator( $this->migrator = new \phpbb\db\migrator(
$container,
$this->config, $this->config,
$this->db, $this->db,
$this->db_tools, $this->db_tools,
@ -57,9 +60,8 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case
$tools, $tools,
new \phpbb\db\migration\helper() new \phpbb\db\migration\helper()
); );
$container->set('migrator', $this->migrator);
$container = new phpbb_mock_container_builder(); $container->set('dispatcher', new phpbb_mock_event_dispatcher());
$container->set('migrator', $migrator);
$user = new \phpbb\user('\phpbb\datetime'); $user = new \phpbb\user('\phpbb\datetime');
$this->extension_manager = new \phpbb\extension\manager( $this->extension_manager = new \phpbb\extension\manager(

View File

@ -156,7 +156,10 @@ class phpbb_extension_manager_test extends phpbb_database_test_case
$table_prefix = 'phpbb_'; $table_prefix = 'phpbb_';
$user = new \phpbb\user('\phpbb\user'); $user = new \phpbb\user('\phpbb\user');
$container = new phpbb_mock_container_builder();
$migrator = new \phpbb\db\migrator( $migrator = new \phpbb\db\migrator(
$container,
$config, $config,
$db, $db,
$db_tools, $db_tools,
@ -167,7 +170,6 @@ class phpbb_extension_manager_test extends phpbb_database_test_case
array(), array(),
new \phpbb\db\migration\helper() new \phpbb\db\migration\helper()
); );
$container = new phpbb_mock_container_builder();
$container->set('migrator', $migrator); $container->set('migrator', $migrator);
return new \phpbb\extension\manager( return new \phpbb\extension\manager(

View File

@ -62,7 +62,10 @@ class phpbb_extension_metadata_manager_test extends phpbb_database_test_case
new \phpbb\template\context() new \phpbb\template\context()
); );
$container = new phpbb_mock_container_builder();
$this->migrator = new \phpbb\db\migrator( $this->migrator = new \phpbb\db\migrator(
$container,
$this->config, $this->config,
$this->db, $this->db,
$this->db_tools, $this->db_tools,
@ -73,7 +76,6 @@ class phpbb_extension_metadata_manager_test extends phpbb_database_test_case
array(), array(),
new \phpbb\db\migration\helper() new \phpbb\db\migration\helper()
); );
$container = new phpbb_mock_container_builder();
$container->set('migrator', $this->migrator); $container->set('migrator', $this->migrator);
$this->extension_manager = new \phpbb\extension\manager( $this->extension_manager = new \phpbb\extension\manager(