mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/13733] Make sure migration classes always have same order in tests
PHPBB3-13733
This commit is contained in:
parent
0defce65c8
commit
a60935b99d
1 changed files with 4 additions and 4 deletions
|
@ -74,9 +74,7 @@ class phpbb_extension_extension_base_test extends phpbb_test_case
|
|||
array(
|
||||
'vendor2/bar',
|
||||
true,
|
||||
array(
|
||||
2 => '\vendor2\bar\migrations\migration',
|
||||
),
|
||||
array('\vendor2\bar\migrations\migration'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
@ -87,6 +85,8 @@ class phpbb_extension_extension_base_test extends phpbb_test_case
|
|||
public function test_suffix_get_classes($extension_name, $validate_classes, $expected)
|
||||
{
|
||||
$extension = $this->extension_manager->get_extension($extension_name);
|
||||
$this->assertEquals($expected, self::$reflection_method_get_migration_file_list->invoke($extension, $validate_classes));
|
||||
$migration_classes = self::$reflection_method_get_migration_file_list->invoke($extension, $validate_classes);
|
||||
sort($migration_classes);
|
||||
$this->assertEquals($expected, $migration_classes);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue