Dynamically copy scaffold file mapping when create fake_site fixture

Created on 6 February 2023, almost 2 years ago
Updated 23 February 2023, almost 2 years ago

Problem/Motivation

follow-up to 🐛 The 'fake_site' fixture cannot be using with `composer show` because the packages are not installed Fixed

modules/automatic_updates/package_manager/tests/fixtures/path_repos/drupal--core has drupal-scaffold.file_mapping specified that was copied from the pre #3335908 version of package_manager/tests/fixtures/fake_site/vendor/composer/installed.json

Steps to reproduce

Proposed resolution

During \Drupal\automatic_updates\Development\ComposerFixtureCreator::createFixture which is run just when creating updating the fixture at package_manager/tests/fixtures/fake_site and then will be committed to the repo
We should see if we can just copy the file_mapping values from `core/composer.json` to /automatic_updates/package_manager/tests/fixtures/path_repos/drupal--core

We should check how this affects ScaffoldFilePermissionsValidatorTest to ensure we don't lose test coverage and if we need to change/extend coverage

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇸United States tedbow Ithaca, NY, USA

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

Comments & Activities

Production build 0.71.5 2024