Change record status: 
Project: 
Introduced in branch: 
8.6.x
Introduced in version: 
8.6.0
Description: 

It was previously possible to use config entities imported from files in tests, where the filename doesn't match the contained entity's ID.

Since this can lead to subtle bugs, the ConfigInstaller class will now check whether the filename matches the entity ID and issues a warning otherwise (which will usually result in a test fail). In such a case, update either the filename or the ID in the file to be consistent.

Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done

Comments

Pasqualle’s picture

1. Generally the config id must match the part of config filename after the second dot, for example:
filename: core.entity_view_display.node.blog.default.yml
id: node.blog.default

2. If the given config works for you, but you see the "configuration name ... does not match the ID" error, then you should change the config filename (in /config/install directory), not the config id.