mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/12963] Correctly load migration files from migration/ in tests as well
PHPBB3-12963
This commit is contained in:
parent
7729ae4ad0
commit
180f9bf4fa
1 changed files with 8 additions and 1 deletions
|
@ -72,9 +72,16 @@ abstract class phpbb_database_test_case extends PHPUnit_Extensions_Database_Test
|
||||||
$classes = $finder->core_path('phpbb/')
|
$classes = $finder->core_path('phpbb/')
|
||||||
->core_directory('/db/migration/data')
|
->core_directory('/db/migration/data')
|
||||||
->set_extensions($setup_extensions)
|
->set_extensions($setup_extensions)
|
||||||
->extension_directory('migrations')
|
->extension_directory('migration')
|
||||||
->get_classes();
|
->get_classes();
|
||||||
|
|
||||||
|
// @deprecated 3.1.0-RC4 (To be removed: 3.2.0)
|
||||||
|
$classes_deprecated = $finder
|
||||||
|
->extension_directory('/migrations')
|
||||||
|
->get_classes();
|
||||||
|
|
||||||
|
$classes = array_merge($classes, $classes_deprecated);
|
||||||
|
|
||||||
$db = new \phpbb\db\driver\sqlite();
|
$db = new \phpbb\db\driver\sqlite();
|
||||||
$schema_generator = new \phpbb\db\migration\schema_generator($classes, new \phpbb\config\config(array()), $db, new \phpbb\db\tools($db, true), $phpbb_root_path, $phpEx, $table_prefix);
|
$schema_generator = new \phpbb\db\migration\schema_generator($classes, new \phpbb\config\config(array()), $db, new \phpbb\db\tools($db, true), $phpbb_root_path, $phpEx, $table_prefix);
|
||||||
$schema_data = $schema_generator->get_schema();
|
$schema_data = $schema_generator->get_schema();
|
||||||
|
|
Loading…
Add table
Reference in a new issue