Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
In #2728579: Explicitly skip @requires module in PHPUnit Kernel and Browser tests we gave KernelTestBase
tests the ability to annotate @requires module modulename
for the test class and for the test method.
We should have similar annotations for BrowserTestBase
tests.
Proposed resolution
We will probably need to factor this functionality out of KernelTestBase
into a trait, which will be used by both KernelTestBase
and BrowserTestBase
.
Comments
Comment #2
Mile23Immediately postponed on #2728579: Explicitly skip @requires module in PHPUnit Kernel and Browser tests
Comment #3
Mile23Comment #4
klausiWe decided to fold this into #2728579: Explicitly skip @requires module in PHPUnit Kernel and Browser tests.