It's all in the title.

Issue fork domain-3574086

Command icon 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

mably created an issue. See original summary.

  • mably committed ac1fd88d on 3.x
    task: #3574086 Deprecation notices fixes
    
    By: mably
    
mably’s picture

Status: Active » Fixed

Added #[Group] and #[RunTestsInSeparateProcesses] PHPUnit attributes to all 92 test classes across all sub-modules (domain, domain_access, domain_alias, domain_config, domain_config_ui, domain_content, domain_source).

Changes

  • Added use PHPUnit\Framework\Attributes\Group; and use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses; import statements to all test files
  • Added #[Group('group_name')] attribute matching the existing @group annotation on every test class (both kept for Drupal 10.6/PHPUnit 9 backward compatibility)
  • Added #[RunTestsInSeparateProcesses] attribute on all Functional, FunctionalJavascript, and Kernel test classes (required by Drupal 11.3+)
  • Unit tests only get #[Group] — no #[RunTestsInSeparateProcesses] needed

Test results

All 133 tests pass (3560 assertions) across all 7 sub-modules:

  • domain: 41 tests, 1893 assertions — OK
  • domain_access: 37 tests, 680 assertions — OK
  • domain_alias: 10 tests, 184 assertions — OK
  • domain_config: 8 tests, 116 assertions — OK
  • domain_config_ui: 11 tests, 201 assertions — OK
  • domain_content: 3 tests, 271 assertions — OK
  • domain_source: 23 tests, 215 assertions — OK

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.