class BrowserMissingDependentModuleMethodTest
A fixture test class with requires annotation.
This is a fixture class for \Drupal\FunctionalTests\BrowserTestBaseTest::testMethodRequiresModule().
This test class should not be discovered by run-tests.sh or phpunit.
@group fixture
Hierarchy
- class \Drupal\Tests\BrowserTestBase uses \Drupal\Core\Test\FunctionalTestSetupTrait, \Drupal\Tests\UiHelperTrait, \Drupal\Core\Test\TestSetupTrait, \Drupal\Tests\block\Traits\BlockCreationTrait, \Drupal\FunctionalTests\AssertLegacyTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\node\Traits\NodeCreationTrait, \Drupal\Tests\node\Traits\ContentTypeCreationTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\user\Traits\UserCreationTrait, \Drupal\Tests\XdebugRequestTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, \Drupal\Tests\ExtensionListTestTrait implements \PHPUnit\Framework\TestCase
- class \Drupal\FunctionalTests\BrowserMissingDependentModuleMethodTest implements \Drupal\Tests\BrowserTestBase
Expanded class hierarchy of BrowserMissingDependentModuleMethodTest
1 file declares its use of BrowserMissingDependentModuleMethodTest
- BrowserTestBaseTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Test/ BrowserTestBaseTest.php
File
-
core/
tests/ fixtures/ BrowserMissingDependentModuleMethodTest.php, line 17
Namespace
Drupal\FunctionalTestsView source
class BrowserMissingDependentModuleMethodTest extends BrowserTestBase {
/**
* 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.