Add test coverage for Errors thrown from autoloading classes

Created on 23 April 2025, about 21 hours ago

Problem/Motivation

Follow-up from 📌 Add a fallback classloader that can handle missing traits Active , we don't have test coverage for when autoloading a class during test discovery results in an Error being thrown.

An example for this might be referencing a missing constant, which is usually an E_WARNING.

https://git.drupalcode.org/project/drupal/-/merge_requests/11030/diffs?c... was a failed attempt to add test coverage, but there might be something in there that could be reviewed/fixed so it actually tests the right thing.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

plugin system

Created by

🇬🇧United Kingdom catch

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

Comments & Activities

Production build 0.71.5 2024