$message = $this->prophesize(MigrateMessageInterface::class);
// Match the expected message. Can't use default argument types, because
// we need to convert to string from TranslatableMarkup.
- $argument = Argument::that(function($msg) {
- return strpos((string) $msg, "This entity type does not support translation") !== FALSE;
+ $argument = Argument::that(function ($msg) {
+ return strpos((string) $msg, htmlentities('The "no_language_entity_test" entity type does not support translations.')) !== FALSE;
});
$message->display($argument, Argument::any())
->shouldBeCalled();