Migrate plugin tests use @cover annotation to indicate the plugin class

Created on 28 August 2025, 3 months ago

Problem/Motivation

Migrate plugin kernel tests use @covers annotation to indicate the plugin class to be tested.

This is blocking conversion of test metadata to PHP attributes, since there is no attribute equivalent to the @covers annotation.

Proposed resolution

Add a @coversDefaultClass annotation to the relevant test classes, that indicates the same class indicated by the @covers annotation.

The @coversDefaultClass annotation will be converted by Rector to a #[CoversClass] attribute.

Change MigrateSourceTestBase::getPluginClass to look for the CoversClass metadata first, falling back to the Covers metadata for BC.

Remaining tasks

User interface changes

Introduced terminology

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 !13106Closes #3543658 → (Closed) created by mondrake
  • Pipeline finished with Success
    3 months ago
    #584559
  • Pipeline finished with Running
    3 months ago
    #584656
  • 🇮🇹Italy mondrake 🇮🇹
  • Pipeline finished with Success
    3 months ago
    Total: 512s
    #584684
  • 🇮🇹Italy mondrake 🇮🇹
  • 🇮🇳India deepakkm

    Looks good to me, i think we can get this in since it has a small change which is same for almost all files.

  • Pipeline finished with Success
    2 months ago
    Total: 418s
    #593870
  • Pipeline finished with Success
    2 months ago
    Total: 797s
    #595727
  • Pipeline finished with Failed
    about 2 months ago
    Total: 532s
    #600464
Production build 0.71.5 2024