protected function BrowserTestBase::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::setUp()
360 calls to BrowserTestBase::setUp()
- AccessDeniedTest::setUp in core/
modules/ system/ tests/ src/ Functional/ System/ AccessDeniedTest.php - ActiveWorkspaceUpdateTest::setUp in core/
modules/ workspaces/ tests/ src/ Functional/ UpdateSystem/ ActiveWorkspaceUpdateTest.php - AdminPathEntityConverterLanguageTest::setUp in core/
modules/ language/ tests/ src/ Functional/ AdminPathEntityConverterLanguageTest.php - AdminTest::setUp in core/
modules/ system/ tests/ src/ Functional/ System/ AdminTest.php - AggregatorTestBase::setUp in core/
modules/ aggregator/ tests/ src/ Functional/ AggregatorTestBase.php
486 methods override BrowserTestBase::setUp()
- AccessDeniedTest::setUp in core/
modules/ system/ tests/ src/ Functional/ System/ AccessDeniedTest.php - ActionFormAjaxTest::setUp in core/
modules/ action/ tests/ src/ FunctionalJavascript/ ActionFormAjaxTest.php - ActiveWorkspaceUpdateTest::setUp in core/
modules/ workspaces/ tests/ src/ Functional/ UpdateSystem/ ActiveWorkspaceUpdateTest.php - AdminPathEntityConverterLanguageTest::setUp in core/
modules/ language/ tests/ src/ Functional/ AdminPathEntityConverterLanguageTest.php - AdminTest::setUp in core/
modules/ system/ tests/ src/ Functional/ System/ AdminTest.php
File
- core/
tests/ Drupal/ Tests/ BrowserTestBase.php, line 366
Class
- BrowserTestBase
- Provides a test case for functional Drupal tests.
Namespace
Drupal\TestsCode
protected function setUp() {
parent::setUp();
$this
->setUpAppRoot();
// Allow tests to compare MarkupInterface objects via assertEquals().
$this
->registerComparator(new MarkupInterfaceComparator());
$this
->setupBaseUrl();
// Install Drupal test site.
$this
->prepareEnvironment();
$this
->installDrupal();
// Setup Mink.
$this
->initMink();
// Set up the browser test output file.
$this
->initBrowserOutputFile();
// Ensure that the test is not marked as risky because of no assertions. In
// PHPUnit 6 tests that only make assertions using $this->assertSession()
// can be marked as risky.
$this
->addToAssertionCount(1);
}