diff --git a/src/Commands/MigrateToolsCommands.php b/src/Commands/MigrateToolsCommands.php index 5da14b1..b04f717 100644 --- a/src/Commands/MigrateToolsCommands.php +++ b/src/Commands/MigrateToolsCommands.php @@ -128,7 +128,7 @@ class MigrateToolsCommands extends DrushCommands { 'tag' => self::OPT, 'names-only' => FALSE, ]) { - $names_only = isset($options['names-only']); + $names_only = $options['names-only'] ?? FALSE; $migrations = $this->migrationsList($migration_names, $options); diff --git a/tests/src/Functional/DrushCommandsTest.php b/tests/src/Functional/DrushCommandsTest.php index d850581..258b619 100644 --- a/tests/src/Functional/DrushCommandsTest.php +++ b/tests/src/Functional/DrushCommandsTest.php @@ -63,7 +63,7 @@ class DrushCommandsTest extends BrowserTestBase { // Flush cache so the recently removed invalid migration is cleared. $this->drush('cr'); $this->drush('ms'); - $this->assertContains('Group: Default (default) fruit_terms', $this->getOutput()); + $this->assertContains('Default (default) fruit_terms Idle 3 0 3', $this->getOutput()); $this->drush('mim', ['fruit_terms']); $this->assertErrorOutputEquals('[notice] Processed 3 items (3 created, 0 updated, 0 failed, 0 ignored) - done with \'fruit_terms\''); $this->drush('mim', ['fruit_terms'], [