Fix typos in migration levels related strings
[MAILPOET-5416]
This commit is contained in:
committed by
Aschepikov
parent
acd5846f70
commit
33e7e2d5f1
@ -448,7 +448,7 @@ class RoboFile extends \Robo\Tasks {
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new migration file. Use `migrations:new db` for a bb level migration or `migrations:new app` for app level migration.
|
||||
* Creates a new migration file. Use `migrations:new db` for a db level migration or `migrations:new app` for app level migration.
|
||||
* @param $level string - db or app
|
||||
*/
|
||||
public function migrationsNew($level) {
|
||||
|
@ -14,7 +14,7 @@ class MigratorException extends InvalidStateException {
|
||||
|
||||
public static function invalidMigrationLevel(string $level): self {
|
||||
return self::create()->withMessage(
|
||||
sprintf('Migration level "%s" is not supported! Use "app" of "db".', $level)
|
||||
sprintf('Migration level "%s" is not supported! Use "app" or "db".', $level)
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@ class RepositoryTest extends MailPoetUnitTest {
|
||||
]);
|
||||
|
||||
$this->expectException(MigratorException::class);
|
||||
$this->expectExceptionMessage(sprintf('Migration level "%s" is not supported! Use "app" of "db".', 'abc'));
|
||||
$this->expectExceptionMessage(sprintf('Migration level "%s" is not supported! Use "app" or "db".', 'abc'));
|
||||
$repository->create('abc');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user