aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-09-14 00:32:34 +0200
committerTristan Darricau <github@nicofuma.fr>2014-09-14 00:56:41 +0200
commit46a9fe93d797bf7d56fd9b1e204f3c0459270122 (patch)
tree416b40259b6b71dbaf5037a6093caa5635694732 /tests
parentMerge pull request #2879 from callumacrae/ticket/12982 (diff)
downloadphpbb-46a9fe93d797bf7d56fd9b1e204f3c0459270122.tar.gz
phpbb-46a9fe93d797bf7d56fd9b1e204f3c0459270122.tar.bz2
phpbb-46a9fe93d797bf7d56fd9b1e204f3c0459270122.zip
[ticket/13064] Validate the migrations provided to migrator::set_migrations()
PHPBB3-13064
Diffstat (limited to 'tests')
-rw-r--r--tests/dbal/migrator_test.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/dbal/migrator_test.php b/tests/dbal/migrator_test.php
index 10a9444d63..05e60a510b 100644
--- a/tests/dbal/migrator_test.php
+++ b/tests/dbal/migrator_test.php
@@ -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())
{