class KernelMissingDependentModuleMethodTest
Same name and namespace in other branches
- 10 core/tests/fixtures/KernelMissingDependentModuleMethodTest.php \Drupal\KernelTests\KernelMissingDependentModuleMethodTest
- 8.9.x core/tests/fixtures/KernelMissingDependentModuleMethodTest.php \Drupal\KernelTests\KernelMissingDependentModuleMethodTest
A fixture test class with requires annotation.
This is a fixture class for \Drupal\KernelTests\KernelTestBaseTest::testRequiresModule().
This test class should not be discovered by run-tests.sh or phpunit.
@group fixture
Hierarchy
- class \Drupal\KernelTests\KernelTestBase implements \Drupal\Core\DependencyInjection\ServiceProviderInterface uses \Drupal\KernelTests\AssertLegacyTrait, \Drupal\KernelTests\AssertContentTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\ExtensionListTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\KernelTests\KernelMissingDependentModuleMethodTest extends \Drupal\KernelTests\KernelTestBase
Expanded class hierarchy of KernelMissingDependentModuleMethodTest
File
-
core/
tests/ fixtures/ KernelMissingDependentModuleMethodTest.php, line 15
Namespace
Drupal\KernelTestsView source
class KernelMissingDependentModuleMethodTest extends KernelTestBase {
/**
* This method should be skipped since it requires a module that is not found.
*
* @requires module module_does_not_exist
*/
public function testRequiresModule() {
$this->fail('Running test with missing required module.');
}
/**
* Public access for checkRequirements() to avoid reflection.
*/
public function publicCheckRequirements() {
return parent::checkRequirements();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.