Consider moving test modules out of system module, unless they relate to system.module

Created on 7 July 2025, 20 days ago

Problem/Motivation

There are currently 204 test modules in core/modules/system/tests/modules, but many of them are not required by tests in system.module.

For example, accept_header_routing_test is only used by \Drupal\KernelTests\Core\Routing\ContentNegotiationRoutingTest.

Steps to reproduce

Proposed resolution

Update ExtensionDiscovery to find test modules in core/tests when $include_tests or extension_discovery_scan_tests is true.

Identify test modules in core/modules/system/tests/modules that are used outside of tests in system.module

Move them to core/tests/modules

Remaining tasks

Decide if this is a good idea

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

phpunit

Created by

πŸ‡¦πŸ‡ΊAustralia mstrelan

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024