class BrowserTestBase
Same name in this branch
- 8.9.x core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase
Same name in other branches
- 9 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase
- 10 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase
- 11.x core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase
Provides a test case for functional Drupal tests.
Tests extending BrowserTestBase must exist in the Drupal\Tests\yourmodule\Functional namespace and live in the modules/yourmodule/tests/src/Functional directory.
Hierarchy
- class \Drupal\Tests\BrowserTestBase extends \PHPUnit\Framework\TestCase 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\PhpunitCompatibilityTrait
- class \Drupal\simpletest\BrowserTestBase extends \Drupal\Tests\BrowserTestBase
Expanded class hierarchy of BrowserTestBase
Deprecated
in drupal:8.1.0 and is removed from drupal:9.0.0. Use Drupal\Tests\BrowserTestBase instead.
See also
\Drupal\simpletest\WebTestBase
Related topics
1 string reference to 'BrowserTestBase'
- TestDiscoveryTest::infoParserProvider in core/
tests/ Drupal/ Tests/ Core/ Test/ TestDiscoveryTest.php
File
-
core/
modules/ simpletest/ src/ BrowserTestBase.php, line 24
Namespace
Drupal\simpletestView source
abstract class BrowserTestBase extends BaseBrowserTestBase {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.