UpdateSemverContribTest incorrectly sets core version

Created on 7 December 2021, about 3 years ago
Updated 31 March 2024, 10 months ago

Problem/Motivation

In UpdateSemverContribTest::setProjectInstalledVersion(), we do this to set the installed version of Drupal core:

      'drupal' => [
        'project' => 'drupal',
        'version' => '8.0.0',
        'hidden' => FALSE,
      ],

This does not match the logic in update_test_system_info_alter(), which expects an #all key to set the core version (as seen in UpdateSemverCoreTest::setProjectInstalledVersion()).

So basically UpdateSemverContribTest is wrong here, and possibly passing falsely.

Steps to reproduce

N/A

Proposed resolution

Use the #all key to change the core version in UpdateSemverContribTest.

Remaining tasks

Post a test-only merge request which makes the change, just to see if any tests break, and which ones.

If no tests break, it means our coverage is lacking and we need to add some. If tests do break, fix them. This is what should be done in the second merge request.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

None.

πŸ› Bug report
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
UpdateΒ  β†’

Last updated 11 days ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @tedbow
  • πŸ‡ΊπŸ‡ΈUnited States @dww
Created by

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

Live updates comments and jobs are added and updated live.
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