Deprecate Drupal\Tests\TestRequirementsTrait::checkRequirements and ::checkModuleRequirements

Created on 31 January 2024, 5 months ago
Updated 16 February 2024, 5 months ago

Problem/Motivation

@requires module xxxxx is not a supported syntax in PHPUnit 10, and its parser no longer processes it.

The valid types of @requires are described here, https://docs.phpunit.de/en/10.5/annotations.html#requires

We can no longer rely on PHPUnit internal Test::parseTestMethodAnnotations() method (which is no longer existing BTW), nor on its new Metadata API, to fetch this information.

Steps to reproduce

Apparently the only test using @requires module xxxx is Drupal\Tests\jsonapi\Functional\FileUploadTest, but there are references to it in KernelTestBase and in some fixtures.

Proposed resolution

tbd

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Fixed

Version

11.0 ๐Ÿ”ฅ

Component
PHPUnitย  โ†’

Last updated about 21 hours ago

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.69.0 2024