diff --git a/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php b/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php index fe16058..5e7cbac 100644 --- a/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php +++ b/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php @@ -422,10 +422,6 @@ public function testProcessRowEmptyPipeline() { /** * Tests the processRow pipeline exception. - * - * @expectedException \Drupal\migrate\MigrateException - * - * @expectedExceptionMessage Pipeline failed at plugin_id plugin for destination destination_id: transform_return_string received instead of an array, */ public function testProcessRowPipelineException() { $row = new Row(); @@ -439,6 +435,7 @@ public function testProcessRowPipelineException() { $plugins['destination_id'] = [$plugin, $plugin]; $this->migration->method('getProcessPlugins')->willReturn($plugins); + $this->setExpectedException(MigrateException::class, 'Pipeline failed at plugin_id plugin for destination destination_id: transform_return_string received instead of an array,'); $this->executable->processRow($row); }