You are here

public function KernelMissingDependentModuleMethodTest::testRequiresModule in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/fixtures/KernelMissingDependentModuleMethodTest.php \Drupal\KernelTests\KernelMissingDependentModuleMethodTest::testRequiresModule()
  2. 10 core/tests/fixtures/KernelMissingDependentModuleMethodTest.php \Drupal\KernelTests\KernelMissingDependentModuleMethodTest::testRequiresModule()

This method should be skipped since it requires a module that is not found.

@requires module module_does_not_exist

File

core/tests/fixtures/KernelMissingDependentModuleMethodTest.php, line 22

Class

KernelMissingDependentModuleMethodTest
A fixture test class with requires annotation.

Namespace

Drupal\KernelTests

Code

public function testRequiresModule() {
  $this
    ->fail('Running test with missing required module.');
}