Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'@requires module' test annotation is deprecated #897

Open
github-actions bot opened this issue Oct 20, 2024 · 0 comments
Open

'@requires module' test annotation is deprecated #897

github-actions bot opened this issue Oct 20, 2024 · 0 comments
Labels

Comments

@github-actions
Copy link

https://www.drupal.org/node/3418480

Introduced in branch/version: 10.3.x / 10.3.0

@requires module x is not a supported syntax in PHPUnit 10, and its parser no longer processes it. In the past, Drupal used this annotation to ensure a module was available in kernel tests:

  * @requires module mymodule

This has not been working since PHPUnit 7 was adopted. That made TestCase::checkRequirements a private method of the base class, making Drupal\Tests\TestRequirementsTrait::checkRequirements never be called again.

The annotation and Drupal\Tests\TestRequirementsTrait::checkRequirements are now deprecated for removal in Drupal 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants