$expected =
[ new FormattableMarkup('Entity type mismatch on rename. @old_type not equal to @new_type for existing configuration @old_name and staged configuration @new_name.',
['@old_type' => 'node_type', '@new_type' => 'config_test', '@old_name' => 'node.type.' .
$content_type->
id(), '@new_name' => 'config_test.dynamic.' .
$test_entity_id]),
];
$this->
assertEquals($expected,
$this->configImporter->
getErrors());
} } /**
* Tests configuration renaming validation for simple configuration.
*/
public function testRenameSimpleConfigValidation() { $uuid =
new Php();
// Create a simple configuration with a UUID.
$config =
$this->
config('config_test.new'
);
$uuid_value =
$uuid->
generate();
$config->
set('uuid',
$uuid_value)->
save();
$active =
$this->container->
get('config.storage'
);
$sync =
$this->container->
get('config.storage.sync'
);
$this->
copyConfig($active,
$sync);
$config->
delete();
// Create another simple configuration with the same UUID.