function KernelMissingDependentModuleMethodTest::testRequiresModule
Same name in other branches
- 9 core/tests/fixtures/KernelMissingDependentModuleMethodTest.php \Drupal\KernelTests\KernelMissingDependentModuleMethodTest::testRequiresModule()
- 8.9.x core/tests/fixtures/KernelMissingDependentModuleMethodTest.php \Drupal\KernelTests\KernelMissingDependentModuleMethodTest::testRequiresModule()
- 11.x 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 29
Class
- KernelMissingDependentModuleMethodTest
- A fixture test class with requires annotation.
Namespace
Drupal\KernelTestsCode
public function testRequiresModule() : void {
$this->fail('Running test with missing required module.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.