Review all tests where system module is the only dependency

Created on 9 February 2018, over 7 years ago
Updated 30 August 2025, about 1 month ago

Problem/Motivation

Follow-up to #2926068-25: Deprecate system_rebuild_module_data() and remove usages in core β†’ , @alexpott's comment:

There is likely to be a few other KernelTests where this is the case. Let's file a followup to review all tests where system is the only dependency. There are 52 tests where this is the case. For example the same code can be removed from \Drupal\Tests\field\Kernel\FieldDefinitionIntegrityTest but not from \Drupal\KernelTests\Core\Theme\ThemeInstallerTest - so working through that in a follow-up makes sense to me.

This issue is to remove system module dependencies that were created in Kernel and Browser tests just to call system_rebuild_module_data() or some other deprecated method.

Steps to reproduce

N/A

Proposed resolution

Create an issue fork by clicking the button.
Follow the instructions to pull down the fork.
Search core for public static $modules = ['system'];
If it is in a Kernel test delete the line.
Run the test locally
If it passes commit the change
If it fails undo the deletion
Note the test in the remaining tasks section for further investigation
Push up changes
Create MR
Set issue status to needs review

Remaining tasks

User interface changes

N/A

Introduced terminology

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

extension system

Created by

πŸ‡³πŸ‡¬Nigeria almaudoh

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

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