UpdateTestController should allow using release history fixtures from arbitrary directories

Created on 12 April 2022, about 3 years ago
Updated 14 May 2025, 8 days ago

Problem/Motivation

The Automatic Updates module β†’ -- which will be moved into core β†’ -- and some of its contrib sub-modules, needs to be able to use fake release history XML in its functional tests, since it deals with the update system.

Right now, we achieve this by wholesale copying UpdateTestController::updateTest() into the Automatic Updates module's testing framework. We will probably continue to need hacks like that...unless core could change UpdateTestController::updateTest() in such a way that it can serve release history XML from any arbitrary path.

Steps to reproduce

N/A

Proposed resolution

Change UpdateTestController::updateTest() so that it can serve fake release history XML from any path, not just the update_test module's fixtures.

Remaining tasks

Make it happen.

User interface changes

None.

API changes

None. This is part of a test module, but as far as I can tell, it's not part of the official testing system.

Data model changes

None.

Release notes snippet

None needed.

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component

update.module

Created by

πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

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