aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dbal/migrator_test.php
diff options
context:
space:
mode:
authorOliver Schramm <oliver.schramm97@gmail.com>2016-08-11 18:30:35 +0200
committerOliver Schramm <oliver.schramm97@gmail.com>2016-08-11 18:30:35 +0200
commit210310b584a0bd816132efa3d8f1ce082efebf88 (patch)
treede0369ecb304899b766a7c8292565497e5148bf9 /tests/dbal/migrator_test.php
parent3346609126893799169dc678da732d99d506fb9f (diff)
parentc12d67cd900514f9752d7bb73928870dbab0a0ce (diff)
downloadforums-210310b584a0bd816132efa3d8f1ce082efebf88.tar
forums-210310b584a0bd816132efa3d8f1ce082efebf88.tar.gz
forums-210310b584a0bd816132efa3d8f1ce082efebf88.tar.bz2
forums-210310b584a0bd816132efa3d8f1ce082efebf88.tar.xz
forums-210310b584a0bd816132efa3d8f1ce082efebf88.zip
Merge branch 'ticket/14742' into ticket/14742-32x
Diffstat (limited to 'tests/dbal/migrator_test.php')
-rw-r--r--tests/dbal/migrator_test.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/dbal/migrator_test.php b/tests/dbal/migrator_test.php
index 48c99ad1d0..f7275a4bbe 100644
--- a/tests/dbal/migrator_test.php
+++ b/tests/dbal/migrator_test.php
@@ -154,6 +154,14 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case
$this->assertFalse($migrator_test_if_true_failed, 'True test failed');
$this->assertFalse($migrator_test_if_false_failed, 'False test failed');
+
+ while ($this->migrator->migration_state('phpbb_dbal_migration_if') !== false)
+ {
+ $this->migrator->revert('phpbb_dbal_migration_if');
+ }
+
+ $this->assertFalse($migrator_test_if_true_failed, 'True test after revert failed');
+ $this->assertFalse($migrator_test_if_false_failed, 'False test after revert failed');
}
public function test_recall()