You are here

public function DrushTest::testStop in Migrate Tools 8.4

Same name and namespace in other branches
  1. 8.5 tests/src/Kernel/DrushTest.php \Drupal\Tests\migrate_tools\Kernel\DrushTest::testStop()

Tests drush mst.

Throws

\Drupal\Component\Plugin\Exception\PluginException

File

tests/src/Kernel/DrushTest.php, line 250

Class

DrushTest
Tests for the Drush 9 commands.

Namespace

Drupal\Tests\migrate_tools\Kernel

Code

public function testStop() {

  /** @var \Drupal\migrate\Plugin\MigrationInterface $migration */
  $migration = $this->migrationPluginManager
    ->createInstance('fruit_terms');
  $migration
    ->setStatus(MigrationInterface::STATUS_IMPORTING);
  $this->commands
    ->stop('fruit_terms');
  $this
    ->assertSame(MigrationInterface::STATUS_STOPPING, $migration
    ->getStatus());
}