1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/13064] Validate the migrations provided to migrator::set_migrations()

PHPBB3-13064
This commit is contained in:
Tristan Darricau
2014-09-14 00:32:34 +02:00
parent 48dbef391b
commit 46a9fe93d7
2 changed files with 27 additions and 2 deletions

View File

@@ -118,9 +118,17 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case
$this->db_tools->sql_column_remove('phpbb_config', 'extra_column');
}
public function test_unfulfillable()
/**
* @expectedException \phpbb\db\migration\exception
*/
public function test_unfulfillable_exception()
{
$this->migrator->set_migrations(array('phpbb_dbal_migration_unfulfillable', 'phpbb_dbal_migration_dummy'));
}
public function test_unfulfillable()
{
$this->migrator->set_migrations(array('phpbb_dbal_migration_unfulfillable', 'phpbb_dbal_migration_dummy'), false);
while (!$this->migrator->finished())
{