Closed (fixed)
Project:
Drupal core
Version:
main
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Aug 2026 at 11:45 UTC
Updated:
26 Oct 2026 at 05:48 UTC
Jump to comment: Most recent
Comments
Comment #3
catchComment #4
catchFixed the last dozen or so remaining test failures.
Ended up adding default theme support to the installer too, since otherwise I think we'd have to rebuild the container whenever a non-stark theme is installed via the class property or similar. Doing this fixed all the tests using the starterkit theme via a class property.
A handful of test modules don't specify dependencies (because they were only ever installed after the module they depend on), so added those - straight bug in the test modules.
And a couple of other fixes which I've self-reviewed in the MR.
There is non-zero test fallout from this change but overall it's not very much in the scheme of things.
Comment #5
nicxvan commentedI think we need a CR here for the deprecation and we need to update the deprecation links.
I think a follow up for the core/modules/views/tests/src/Functional/Plugin/NumericFormatPluralTest.php rebuild is probably enough, I suspect your suspicion is correct and it's probably in a test module.
Comment #6
catchAdded a CR here: https://www.drupal.org/node/3616201
Comment #7
catchUpdated the deprecations to point to the CR. Also opened #3616202: Remove ::rebuildContainer() call in NumericFormatPluralTest.
Comment #8
catchCherry-picked a commit from @mstrelan based on #3616202-5: Remove ::rebuildContainer() call in NumericFormatPluralTest, that's good to narrow down the workaround to the minimum.
Comment #9
catchOpened #3616642: Path alias module can't be installed in the same batch as another module that requests a route, although having opened it, I'm not sure it's possible to fix that without adding installer-specific code, which would potentially be worse than the try/catch, but we might find a different approach in the issue.
Comment #10
nicxvan commentedI think this is ready now, this is for the testing framework and should save significant CPU time.
There is the one workaround that is a bit messy, but it's pretty minimal and I think the gains on the testing framework is worth it.
Comment #11
godotislateHave some minor questions on the MR.
Also, do we need a follow up for the path alias/route thing, or is that likely only something the test module runs into?
Comment #12
catchThe test module explicitly tests the case where the module generates a link (e.g. in hook_install()) before the database is ready. It's possible for contrib modules to do this so theoretically another module can cause the same issue, I'm personally not convinced we should support it at all. #3616642: Path alias module can't be installed in the same batch as another module that requests a route is already open for the follow-up.
I think I was able to resolve the rest of the feedback. All small changes so moving back to RTBC.
Comment #13
godotislateI think the commit to change to DatabaseException might have not been pushed, so I just added and applied suggestions.
I also rebased just in case, since a few other things have just been committed.
Comment #14
catchOoops sorry, a bit of multi-tasking going on...
https://git.drupalcode.org/project/drupal/-/jobs/11763921 got through all functional tests in 1m3s which is better than I was getting testing the stacked MRs. Lots of variation with the other jobs but getting towards where it should be.
Comment #16
godotislateCommitted 6a9373d and pushed to main. Thanks!
Published the CR.
Comment #19
gábor hojtsyThis made tests shipping with CKEditor editor config crash when setting up the test, as the modules get installed with the profile before the theme, but the installed module alerady tries to load the CSS from the theme that does not exist. :) Core does not have one such test, but Canvas has 40 or so. See #3403394: CKEditor 5 throws an exception when the default theme is not installed yet which was a 2023 issue but is now higher significance IMHO.