Needs work
Project:
UI Patterns (SDC in Drupal UI)
Version:
2.0.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Reporter:
Created:
8 May 2026 at 16:57 UTC
Updated:
21 May 2026 at 09:43 UTC
Jump to comment: Most recent
phpunit testst are failing with Drupal 12
1) Drupal\Tests\ui_patterns\Kernel\ComponentPluginManagerTest::testHookComponentInfoAlter
Exception: Kernel test classes must specify the #[RunTestsInSeparateProcesses] attribute
There were already a warning in Drupal 11.
Add the expected attributes. It is OK to add it in our current main branch because compatible with Drupal 11.
But let's check if it is OK with Drupal 10. There is still 2 Drupal 10 for every Drupal 11: https://new.drupal.org/project/usage/drupal
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 #3
aayushpathak commentedworking on it !
Comment #5
aayushpathak commentedThe original issue related to Drupal 12 PHPUnit process isolation is being resolved with this MR.
The current pipeline failure appears to be caused by unrelated functional test failures in LayoutBuilderRenderTest and not by the original #[RunTestsInSeparateProcesses] issue addressed in this ticket.
Comment #6
pdureau commentedThanks a lot Aayush.
The formatting changes are nice because only in the files modified in the scope of the ticket.
I agree with your point of view about pipeline failures, but we will need to investigate anyway before RTBC because they don't happen in the main (2.0.x) branch.
Because we need this to be fixed in order to unlock the run of
phpunit (previous major)test and check everything is OK with Drupal 10.Comment #7
pdureau commentedFor information, I have the same phpunit fail while working on #3590426: Reduce the API scope of our plugin managers:
Comment #8
pdureau commentedBecause we have those same errors in many issues, let's ask the maintainers and move the ticket to "Needs review"
Comment #9
pdureau commentedComment #10
pdureau commentedThe change is not enough to be compatible with Drupal 12 because some tests ahs not been updated:
I got also other messages but they may be a side effect of the missing changes:
$strictConfigSchema must be boolon some tests$strictConfigSchema must be omitted to match the parent definitionon some other testsPlease tests the work locally with Drupal 12 before pushing the proposal.