Problem/Motivation

When running Drupal\FunctionalTests\Installer\InstallerExistingConfigMultilingualTest::testConfigSync with a non-core database driver, the test errors with:

Exception: Drupal\Core\Extension\ModuleUninstallValidatorException: The following reasons prevent the modules from being uninstalled: The module 'SQL Server' is providing the database driver 'sqlsrv'.

Steps to reproduce

Run the tests with a non-core database driver.

Proposed resolution

Add code to InstallerExistingConfigTestBase to prevent the database module from being uninstalled.
This code comes from #3129043: Move core database drivers to modules of their own. I've been trying to fix this bug for ages, but @daffie figured out the best way.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3251125

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Beakerboy created an issue. See original summary.

beakerboy’s picture

beakerboy’s picture

Status: Active » Needs review

daffie’s picture

Status: Needs review » Reviewed & tested by the community

The code is copied correctly.
For me it is RTBC.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

catch credited mondrake.

catch’s picture

  • catch committed 4b927a0 on 10.0.x
    Issue #3251125 by Beakerboy, daffie, mondrake: Do not uninstall the...

  • catch committed 7227fd4 on 9.4.x
    Issue #3251125 by Beakerboy, daffie, mondrake: Do not uninstall the...

  • catch committed cd71d73 on 9.3.x
    Issue #3251125 by Beakerboy, daffie, mondrake: Do not uninstall the...
catch’s picture

Version: 9.4.x-dev » 9.3.x-dev
Status: Reviewed & tested by the community » Fixed

Committed/pushed to 10.0.x, cherry-picked to 9.4.x and 9.3.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.