You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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.
The text was updated successfully, but these errors were encountered:
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:This has not been working since PHPUnit 7 was adopted. That made
TestCase::checkRequirements
a private method of the base class, makingDrupal\Tests\TestRequirementsTrait::checkRequirements
never be called again.The annotation and
Drupal\Tests\TestRequirementsTrait::checkRequirements
are now deprecated for removal in Drupal 11.The text was updated successfully, but these errors were encountered: