Rename EntityReferenceTestTrait breaks multi-version testing

Created on 22 November 2023, 10 months ago
Updated 28 November 2023, 9 months ago

Problem/Motivation

EntityReferenceTestTrait was renamed in 📌 Rename EntityReferenceTestTrait to help discoverability Fixed but this means that codebases using the trait can no longer test multiple Drupal 10 minor versions as reported on Slack

Steps to reproduce

Proposed resolution

Reintroduce the EntityReferenceTestTrait trait and mark it as @deprecated but make it use EntityReferenceFieldCreationTrait. This allows test code to keep using the old trait until they drop testing support for pre-10.2 versions.

Remaining tasks

  • Decide whether the deprecated trait should be removed in Drupal 11 already or whether that should be pushed to Drupal 10 since it limits the possibility for matrix testing multiple Drupal versions from a single code-base

User interface changes

API changes

  • Add back EntityReferenceTestTrait as a deprecated trait

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.2

Component
Field 

Last updated 1 day ago

Created by

🇳🇱Netherlands Kingdutch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024