Closed (fixed)
Project:
Drupal core
Version:
main
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Aug 2026 at 09:15 UTC
Updated:
1 Oct 2026 at 12:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
joachim commentedThis makes a new base class that's a kernel test, and converts all the child classes which are empty.
I figure the non-empty child classes should be done as follow-ups, and once all core child classes are converted, we deprecate the Functional base class.
Comment #4
catchLooks like one remaining test failure:
Comment #5
catchComment #6
joachim commented> 1) /builds/core/lib/Drupal/Core/ImageToolkit/ImageToolkitManager.php:70
Using null as an array offset is deprecated, use an empty string instead
I'm guessing that missing config.
Maybe we should always install the module's default config, since it's what the previous functional tests would do.
Comment #7
catchAlways installing the module's default config sounds good - that's part of the goal of the test really.
Comment #8
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #9
joachim commentedRebased.
Comment #10
dcam commentedYou're right, there is a missing config that the toolkit manager is trying to load,
system.image.Comment #11
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #12
joachim commentedComment #13
dcam commentedI double-checked the diff between the Functional and Kernel versions of the
GenericModuleTestBase. I realized that the Functional version was updated last week. I left two suggestions on the MR to bring the Kernel version up to date with that change. Please check it.Comment #14
joachim commentedDone. Thanks for the review!
Comment #15
dcam commentedNo problem. This one looks good to me.
Comment #16
joachim commentedComment #19
catchRan a before/after:
vs.
So approximately 1s faster per test.
Code changes all look good here. Committed/pushed to main and 11.x, thanks!
Comment #21
joachim commentedFiled the followup: #3624021: convert remaining subclasses of GenericModuleTestBase to kernel tests, and deprecate GenericModuleTestBase.