diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2014-02-05 09:57:36 -0600 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2014-02-05 09:57:36 -0600 |
commit | 38eb6b0e135293d51cc100937a6072b32e214c34 (patch) | |
tree | 0fe9bc23ee9d72c64647ae2debd145f7443d5767 /tests | |
parent | 2c878ead311b8b71cabb4070ce848d5b84470ce8 (diff) | |
download | forums-38eb6b0e135293d51cc100937a6072b32e214c34.tar forums-38eb6b0e135293d51cc100937a6072b32e214c34.tar.gz forums-38eb6b0e135293d51cc100937a6072b32e214c34.tar.bz2 forums-38eb6b0e135293d51cc100937a6072b32e214c34.tar.xz forums-38eb6b0e135293d51cc100937a6072b32e214c34.zip |
[ticket/11880] Move get_schema_steps function to a migrator helper class
PHPBB3-11880
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dbal/migrator_test.php | 3 | ||||
-rw-r--r-- | tests/extension/manager_test.php | 3 | ||||
-rw-r--r-- | tests/extension/metadata_manager_test.php | 3 | ||||
-rw-r--r-- | tests/migrator/get_schema_steps_test.php | 9 | ||||
-rw-r--r-- | tests/test_framework/phpbb_functional_test_case.php | 3 |
5 files changed, 16 insertions, 5 deletions
diff --git a/tests/dbal/migrator_test.php b/tests/dbal/migrator_test.php index 9a6f33523c..c075f19825 100644 --- a/tests/dbal/migrator_test.php +++ b/tests/dbal/migrator_test.php @@ -50,7 +50,8 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case dirname(__FILE__) . '/../../phpBB/', 'php', 'phpbb_', - $tools + $tools, + new \phpbb\db\migration\helper() ); $container = new phpbb_mock_container_builder(); diff --git a/tests/extension/manager_test.php b/tests/extension/manager_test.php index cc32a6af4e..789dc20d14 100644 --- a/tests/extension/manager_test.php +++ b/tests/extension/manager_test.php @@ -106,7 +106,8 @@ class phpbb_extension_manager_test extends phpbb_database_test_case $phpbb_root_path, $php_ext, $table_prefix, - array() + array(), + new \phpbb\db\migration\helper() ); $container = new phpbb_mock_container_builder(); $container->set('migrator', $migrator); diff --git a/tests/extension/metadata_manager_test.php b/tests/extension/metadata_manager_test.php index 592421f9e7..a3c4cc89e9 100644 --- a/tests/extension/metadata_manager_test.php +++ b/tests/extension/metadata_manager_test.php @@ -62,7 +62,8 @@ class phpbb_extension_metadata_manager_test extends phpbb_database_test_case $this->phpbb_root_path, 'php', $this->table_prefix, - array() + array(), + new \phpbb\db\migration\helper() ); $container = new phpbb_mock_container_builder(); $container->set('migrator', $migrator); diff --git a/tests/migrator/get_schema_steps_test.php b/tests/migrator/get_schema_steps_test.php index c37d55ea40..f354d3617f 100644 --- a/tests/migrator/get_schema_steps_test.php +++ b/tests/migrator/get_schema_steps_test.php @@ -9,6 +9,13 @@ class get_schema_steps_test extends phpbb_test_case { + public function setUp() + { + parent::setUp(); + + $this->helper = new \phpbb\db\migration\helper(); + } + public function schema_provider() { return array( @@ -158,6 +165,6 @@ class get_schema_steps_test extends phpbb_test_case */ public function test_get_schema_steps($schema_changes, $expected) { - $this->assertEquals($expected, \phpbb\db\migrator::get_schema_steps($schema_changes)); + $this->assertEquals($expected, $this->helper->get_schema_steps($schema_changes)); } } diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index 71d03746a9..55f9cdb947 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -194,7 +194,8 @@ class phpbb_functional_test_case extends phpbb_test_case $phpbb_root_path, $php_ext, self::$config['table_prefix'], - array() + array(), + new \phpbb\db\migration\helper() ); $container = new phpbb_mock_container_builder(); $container->set('migrator', $migrator); |