diff --git a/core/tests/Drupal/KernelTests/KernelTestBase.php b/core/tests/Drupal/KernelTests/KernelTestBase.php index aba1895..6ba7722 100644 --- a/core/tests/Drupal/KernelTests/KernelTestBase.php +++ b/core/tests/Drupal/KernelTests/KernelTestBase.php @@ -240,10 +240,11 @@ protected function checkRequirements() { /** * Checks missing module requirements. * - * Iterates through a list of requires annotations a looks for missing modules - * and skipping the test if any are missing. + * Iterates through a list of requires annotations and looks for missing + * modules. The test will be skipped if any of the required modules is + * missing. * - * @param $annotations + * @param string[] $annotations * A list of requires annotations from either a method or class annotation. */ protected function checkModuleRequirements(array $annotations) { diff --git a/core/tests/Drupal/KernelTests/KernelTestBaseTest.php b/core/tests/Drupal/KernelTests/KernelTestBaseTest.php index 08e7178..77b81d8 100644 --- a/core/tests/Drupal/KernelTests/KernelTestBaseTest.php +++ b/core/tests/Drupal/KernelTests/KernelTestBaseTest.php @@ -206,6 +206,8 @@ public function testRenderWithTheme() { } /** + * This method should be skipped since it requires a module that is not found. + * * @requires module drupal_dne_module */ public function testRequiresModule() { diff --git a/core/tests/Drupal/KernelTests/MissingDependentModuleUnitTest.php b/core/tests/Drupal/KernelTests/MissingDependentModuleUnitTest.php index 92b6709..6356e43 100644 --- a/core/tests/Drupal/KernelTests/MissingDependentModuleUnitTest.php +++ b/core/tests/Drupal/KernelTests/MissingDependentModuleUnitTest.php @@ -3,7 +3,7 @@ namespace Drupal\KernelTests; /** - * This test should skipped since it requires a module that is not found. + * This test should be skipped since it requires a module that is not found. * * @group PHPUnit * @requires module drupal_dne_module