Kernel tests fail if a core module gets a new update function

Created on 15 September 2023, about 1 year ago

Problem/Motivation

Working on πŸ“Œ Update module's merge request process for current core HEAD Fixed . Tests like \Drupal\Tests\package_manager\Kernel\ComposerPatchesValidatorTest::testErrorDuringPreApplyWithHelp() failed because in 11.x with "Some modules have database schema updates to install. You should run the database update script immediately."

This is because this test method installs the help module and in 11.x there is an update function in core/modules/help/help.post_update.php

Proposed resolution

Override \Drupal\KernelTests\KernelTestBase::enableModules in PackageManagerKernelTestBase and \Drupal\Tests\package_manager\Kernel\PackageManagerKernelTestBase::registerPostUpdateFunctions

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