Problem/Motivation
there are a handful of tests that verify what modules are enabled under certain situations. When running the core test suite while using a non-core database, these tests fail.
There is a project to move all database drivers to their own modules. these changes will have to take place as a part of that project regardless.
Drupal\KernelTests\Core\Common\DrupalFlushAllCachesTest::testDrupalFlushAllCachesModuleList
Drupal\KernelTests\Core\Asset\ResolvedLibraryDefinitionsFilesMatchTest::testCoreLibraryCompleteness
Drupal\KernelTests\Core\Theme\Stable9LibraryOverrideTest::testStable9LibraryOverrides
Drupal\KernelTests\Core\Theme\StableLibraryOverrideTest::testStableLibraryOverrides
Steps to reproduce
Run core tests with SQL Server or another database
Proposed resolution
Modify test to check if the database connection is provided by a module, and include that module in the arrays.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3245383
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
Comment #2
daffie commentedI am not a 100% sure, but I think that the tests mentioned in the issue summary will pass for the SQL server when #3129043: Move core database drivers to modules of their own has landed.
Comment #3
beakerboyI would hope so, but I’m not one to hold my breath that large-scale changes are actually going to happen. It would be nice to attack these small problems as they come up. One, in case the core drivers never move, and two, it’ll make that change simpler if the other pieces are already in place.
Comment #4
beakerboyComment #6
daffie commentedThe MR looks good. Just a couple of small points.
Comment #7
beakerboyImprovements from @daffie have been included.
Comment #8
daffie commentedRemoved all the @todo's.
It is now RTBC for me.
Comment #13
catchIt's a shame we have to repeat similar logic in a couple of places, but it generally is a couple so don't think it's worth trying to abstract it.
Committed/pushed to 10.0.x, cherry-picked to 9.4.x and 9.3.x, thanks!