public function DrushTest::testFailingResetStatusThrowsException in Migrate Tools 8.4
Same name and namespace in other branches
- 8.5 tests/src/Kernel/DrushTest.php \Drupal\Tests\migrate_tools\Kernel\DrushTest::testFailingResetStatusThrowsException()
Tests that a failing reset status throws an exception (i.e. exit code).
File
- tests/
src/ Kernel/ DrushTest.php, line 239
Class
- DrushTest
- Tests for the Drush 9 commands.
Namespace
Drupal\Tests\migrate_tools\KernelCode
public function testFailingResetStatusThrowsException() {
$this
->expectException(\Exception::class);
$this
->expectExceptionMessage('Migration does_not_exist does not exist');
$this->commands
->resetStatus('does_not_exist');
}