Fixed
Project:
Commerce Core
Version:
3.x-dev
Component:
Tests
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
17 Nov 2026 at 11:20 UTC
Updated:
17 Nov 2026 at 11:36 UTC
Jump to comment: Most recent
Running the test suite on recent Drupal 11 minors triggers two deprecations:
#[RunTestsInSeparateProcesses] attribute. This throws an exception in drupal:12.0.0 (change record). No Commerce test class has it yet.ConfigEntityBase::trustData() is deprecated in drupal:11.4.0 with no replacement, which makes PHPStan fail. It is only called in PaymentMethodTest::testUserAccess().These are currently hidden in CI by --suppress-deprecations.
#[RunTestsInSeparateProcesses] to every concrete Functional and FunctionalJavascript test class.$role->trustData()->save() with $role->save() in PaymentMethodTest.Both changes are safe on Drupal 10.3: PHPUnit 9 ignores the attribute, and the role saved in the test is valid config.
Once committed, this will be cherry-picked to 4.x as part of #3638820: Fix Drupal 12 deprecations.
None.
None. Test-only changes.
None.
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 #4
jsacksick commented