public function DrushTest::testFailingMessagesThrowsException in Migrate Tools 8.5
Same name and namespace in other branches
- 8.4 tests/src/Kernel/DrushTest.php \Drupal\Tests\migrate_tools\Kernel\DrushTest::testFailingMessagesThrowsException()
Tests that a failing messages throws an exception (i.e. exit code).
File
- tests/
src/ Kernel/ DrushTest.php, line 181
Class
- DrushTest
- Tests for the Drush 9 commands.
Namespace
Drupal\Tests\migrate_tools\KernelCode
public function testFailingMessagesThrowsException() : void {
$this
->expectException(\Exception::class);
$this
->expectExceptionMessage('Migration does_not_exist does not exist');
$this->commands
->messages('does_not_exist', [
'csv' => FALSE,
'idlist' => NULL,
'idlist-delimiter' => MigrateTools::DEFAULT_ID_LIST_DELIMITER,
]);
}