diff --git a/system/Commands/Database/Migrate.php b/system/Commands/Database/Migrate.php index 91a699b346d6..bcf71cade337 100644 --- a/system/Commands/Database/Migrate.php +++ b/system/Commands/Database/Migrate.php @@ -91,7 +91,7 @@ public function run(array $params) CLI::write($message); } - CLI::write('Done migrations.', 'green'); + CLI::write(lang('Migrations.migrated'), 'green'); // @codeCoverageIgnoreStart } catch (Throwable $e) { diff --git a/system/Language/en/Migrations.php b/system/Language/en/Migrations.php index 1e9ef6316d37..9bfb5c60ae25 100644 --- a/system/Language/en/Migrations.php +++ b/system/Language/en/Migrations.php @@ -36,6 +36,7 @@ 'latest' => 'Running all new migrations...', 'generalFault' => 'Migration failed!', + 'migrated' => 'Migrations complete.', 'migInvalidVersion' => 'Invalid version number provided.', 'toVersionPH' => 'Migrating to version %s...', 'toVersion' => 'Migrating to current version...', diff --git a/tests/system/Commands/DatabaseCommandsTest.php b/tests/system/Commands/DatabaseCommandsTest.php index 0d33342654f0..51221142f9b1 100644 --- a/tests/system/Commands/DatabaseCommandsTest.php +++ b/tests/system/Commands/DatabaseCommandsTest.php @@ -52,12 +52,12 @@ protected function clearBuffer(): void public function testMigrate() { command('migrate --all'); - $this->assertStringContainsString('Done migrations.', $this->getBuffer()); + $this->assertStringContainsString('Migrations complete.', $this->getBuffer()); command('migrate:rollback'); $this->clearBuffer(); command('migrate -n Tests\\\\Support'); - $this->assertStringContainsString('Done migrations.', $this->getBuffer()); + $this->assertStringContainsString('Migrations complete.', $this->getBuffer()); } public function testMigrateRollback() @@ -75,7 +75,7 @@ public function testMigrateRefresh() $this->clearBuffer(); command('migrate:refresh'); - $this->assertStringContainsString('Done migrations.', $this->getBuffer()); + $this->assertStringContainsString('Migrations complete.', $this->getBuffer()); } public function testMigrateStatus()