mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/11880] Move get_schema_steps function to a migrator helper class
PHPBB3-11880
This commit is contained in:
@@ -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();
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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));
|
||||
}
|
||||
}
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user