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