diff --git a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentTypeTest.php b/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentTypeTest.php index 0fe36155d81861132cc416858ced97322e9f56c1..084a8e1005d1580b9335367cc86fe4a6d00c62aa 100644 --- a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentTypeTest.php +++ b/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentTypeTest.php @@ -119,7 +119,7 @@ public function providerTestNoCommentTypeMigration() { 'Disabled source modules' => ['node'], 'Expected messages' => [ 'error' => [ - 'Migration d6_comment_type did not meet the requirements. The node module is not enabled in the source site. source_module_additional: node.', + 'Migration d6_comment_type did not meet the requirements. The node module is not enabled in the source site.', ], ], ], @@ -127,7 +127,7 @@ public function providerTestNoCommentTypeMigration() { 'Disabled source modules' => ['comment'], 'Expected messages' => [ 'error' => [ - 'Migration d6_comment_type did not meet the requirements. The module comment is not enabled in the source site. source_module: comment.', + 'Migration d6_comment_type did not meet the requirements. The module comment is not enabled in the source site.', ], ], ], @@ -135,7 +135,7 @@ public function providerTestNoCommentTypeMigration() { 'Disabled source modules' => ['comment', 'node'], 'Expected messages' => [ 'error' => [ - 'Migration d6_comment_type did not meet the requirements. The module comment is not enabled in the source site. source_module: comment.', + 'Migration d6_comment_type did not meet the requirements. The module comment is not enabled in the source site.', ], ], ], diff --git a/core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTypeTest.php b/core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTypeTest.php index 93d899aaf2bb9e5f2622150f02e92a29aea75211..770464d971f7cbcdf7fa493777aadbd48970706f 100644 --- a/core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTypeTest.php +++ b/core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTypeTest.php @@ -125,7 +125,7 @@ public function providerTestNoCommentTypeMigration() { 'Disabled source modules' => ['node'], 'Expected messages' => [ 'error' => [ - 'Migration d7_comment_type did not meet the requirements. The node module is not enabled in the source site. source_module_additional: node.', + 'Migration d7_comment_type did not meet the requirements. The node module is not enabled in the source site.', ], ], ], @@ -133,7 +133,7 @@ public function providerTestNoCommentTypeMigration() { 'Disabled source modules' => ['comment'], 'Expected messages' => [ 'error' => [ - 'Migration d7_comment_type did not meet the requirements. The module comment is not enabled in the source site. source_module: comment.', + 'Migration d7_comment_type did not meet the requirements. The module comment is not enabled in the source site.', ], ], ], @@ -141,7 +141,7 @@ public function providerTestNoCommentTypeMigration() { 'Disabled source modules' => ['comment', 'node'], 'Expected messages' => [ 'error' => [ - 'Migration d7_comment_type did not meet the requirements. The module comment is not enabled in the source site. source_module: comment.', + 'Migration d7_comment_type did not meet the requirements. The module comment is not enabled in the source site.', ], ], ], diff --git a/core/modules/migrate/src/MigrateExecutable.php b/core/modules/migrate/src/MigrateExecutable.php index 50b75727c2fc53c0632c65d2e6bfb191f889e1a6..59aada1381ecf73b5fdd8ffc75c3168cdcb71010 100644 --- a/core/modules/migrate/src/MigrateExecutable.php +++ b/core/modules/migrate/src/MigrateExecutable.php @@ -164,11 +164,10 @@ public function import() { catch (RequirementsException $e) { $this->message->display( $this->t( - 'Migration @id did not meet the requirements. @message @requirements', + 'Migration @id did not meet the requirements. @message', [ '@id' => $this->migration->id(), '@message' => $e->getMessage(), - '@requirements' => $e->getRequirementsString(), ] ), 'error'