EntityTest class should document how its bundles work

Created on 24 June 2025, 12 days ago

Problem/Motivation

EntityTest is an entity class in a test fixture module.

It's a bit confusing at first glance because it defines a bundle key, but apparently no bundles.

In fact, its bundles can be defined dynamically in tests, using EntityTestHelper.

This should be documented on the entity class so that developers looking for a suitable test entity type to use in a test aren't confused and understand how it works.

Steps to reproduce

Proposed resolution

Add an explanation to the entity class.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

documentation

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024