Convert test annotations to attributes in modules' BuildTests

Created on 1 July 2025, about 10 hours ago

Problem/Motivation

Replace annotation-based test metadata with PHP attributes.

Please DO NOT change the MR here manually. The patch is automatically generated by the MR at 📌 [meta] Define a Rector rule to convert test annotations to attributes Active .

Proposed resolution

In this issue, convert modules' BuildTests.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

phpunit

Created by

🇮🇹Italy mondrake 🇮🇹

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @mondrake
  • Merge request !12569Closes #3533413 → (Open) created by mondrake
  • Pipeline finished with Success
    about 8 hours ago
    Total: 381s
    #536295
  • I ran these commands:
    phpunit --list-tests --group package_manager | grep Package
    phpunit --list-tests --group="#slow" | grep Package

    on both this MR branch and 11.x and confirmed that the following all show up as expected:

     - Drupal\Tests\package_manager\Build\PackageInstallDirectWriteTest::testPackageInstall
     - Drupal\Tests\package_manager\Build\PackageInstallSubmoduleTest::testSubModules
     - Drupal\Tests\package_manager\Build\PackageInstallTest::testPackageInstall
     - Drupal\Tests\package_manager\Build\PackageUpdateTest::testPackageUpdate
    

    Changes look straightforward. LGTM.

Production build 0.71.5 2024