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

Created on 28 August 2025, about 8 hours 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

Production build 0.71.5 2024