3 namespace Drupal\KernelTests;
6 * A fixture test class with requires annotation.
8 * This is a fixture class for
9 * \Drupal\KernelTests\KernelTestBaseTest::testRequiresModule().
11 * This test class should not be discovered by run-tests.sh or phpunit.
13 * @requires module module_does_not_exist
16 class KernelMissingDependentModuleTest extends KernelTestBase {
19 * Placeholder test method.
21 * Depending on configuration, PHPUnit might fail a test if it has no test
22 * methods, so we must provide one. This method should never be executed.
24 public function testRequiresModule() {
25 $this->fail('Running test with missing required module.');
29 * Public access for checkRequirements() to avoid reflection.
31 public function publicCheckRequirements() {
32 return parent::checkRequirements();