aboutsummaryrefslogtreecommitdiff
path: root/tests/lib/Minz/MigratorTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Minz/MigratorTest.php')
-rw-r--r--tests/lib/Minz/MigratorTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/Minz/MigratorTest.php b/tests/lib/Minz/MigratorTest.php
index d4b1e030c..dec1d0176 100644
--- a/tests/lib/Minz/MigratorTest.php
+++ b/tests/lib/Minz/MigratorTest.php
@@ -310,9 +310,10 @@ class MigratorTest extends TestCase
public function testExecuteFailsIfAMigrationIsFailing() {
$migrations_path = TESTS_PATH . '/fixtures/migrations_with_failing/';
$applied_migrations_path = tempnam('/tmp', 'applied_migrations.txt');
- $expected_result = 'A migration failed to be applied, please see previous logs';
+ $expected_result = 'A migration failed to be applied, please see previous logs.';
$result = Minz_Migrator::execute($migrations_path, $applied_migrations_path);
+ list($result, ) = explode("\n", $result, 2);
$this->assertSame($expected_result, $result);
$versions = file_get_contents($applied_migrations_path);