Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Several current bugs represent regressions that are most evident in the interaction between multiple assignment plugins. Examples:
- #2832184: Namespace assignment method not matching field names like field_article_type
- #2832261: assignConfigDependents() runs too early in default assignments
- #2832170: Namespace assignment method broken for existing features with custom bundle
However, currently, we have tests for the individual plugins, but not for how they interact.
Proposed resolution
- Write a test to:
- Install the standard install profile.
- Create additional config as needed. Specifically:
- To ensure that a field storage required by multiple packages is assigned to the core plugin, add
field_tags
andfield_image
fields to the page content type. - To test prefixing of fields, create a field storage
field_article_test
with accompanying field on thearticle
content type.
- To ensure that a field storage required by multiple packages is assigned to the core plugin, add
- Enable all assignment plugins that are included in Features.
- Apply assignments.
- Test the resulting packages against a data structure representing the expected assignments per interoperability aims and principles.
Comments
Comment #2
nedjo