Problem/Motivation

Both #3629052: [PP-1] Share caches between kernel test methods and #3623409: [PP-1] Add the "ShareEnvironment" attribute to all Kernel tests independently landed on the realization that changing the module list within test methods is problematic when sharing the test environment, because it may break assumptions about available/installed plugin definitions and entity/field types, thus interfering with the environment setup process.

Proposed resolution

Prevent module list changes from happening outside the environment setup phase.

Remaining tasks

  • Validate the proposed solution.
  • Implementation
  • Reviews

Issue fork drupal-3631699

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

plach created an issue. See original summary.

plach’s picture

Title: Prevent module list changes outside of setup when sharing a test environment » Prevent module list changes outside of setup when sharing the test environment
Assigned: plach » Unassigned
Status: Active » Needs review