Improve FixtureManipulator DX: validate package name + ensure StageFixtureManipulator is committed + ensure `package_manager_bypass_composer_stager` is not set to FALSE

Created on 15 December 2022, about 2 years ago
Updated 26 January 2023, almost 2 years ago

Problem/Motivation

Follow-up for #3322913: Create an easy way for functional tests to simulate an update (and update kernel tests to use the same) .

We saw several people already adopt the test infrastructure that #3322913: Create an easy way for functional tests to simulate an update (and update kernel tests to use the same) introduced. And in doing so, we spotted 3 problems:

  1. passing in a Drupal project name instead of the corresponding composer package name
  2. Creating a stage and "beginning" it before StageFixtureManipulator was either created or ready to commit.
  3. if package_manager_bypass_composer_stager is set to FALSE, that \Drupal\package_manager_bypass\Beginner will never run, which also means that StageFixtureManipulator will never run.

Proposed resolution

  1. Add basic validation.
  2. Detect this and inform the developer
  3. Detect this and inform the developer

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

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

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