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
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:
- 3251125-do-not-uninstall
changes, plain diff MR !1444
Comments
Comment #2
beakerboyComment #3
beakerboyComment #5
daffie commentedThe code is copied correctly.
For me it is RTBC.
Comment #8
catchComment #12
catchCommitted/pushed to 10.0.x, cherry-picked to 9.4.x and 9.3.x, thanks!