protected function BrowserTestBase::setUpAppRoot in Drupal 9
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::setUpAppRoot()
Sets up the root application path.
2 calls to BrowserTestBase::setUpAppRoot()
- BrowserTestBase::setUp in core/
tests/ Drupal/ Tests/ BrowserTestBase.php - InstallerTestBase::setUp in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerTestBase.php
File
- core/
tests/ Drupal/ Tests/ BrowserTestBase.php, line 395
Class
- BrowserTestBase
- Provides a test case for functional Drupal tests.
Namespace
Drupal\TestsCode
protected function setUpAppRoot() : void {
if ($this->root === NULL) {
$this->root = dirname(substr(__DIR__, 0, -strlen(__NAMESPACE__)), 2);
}
}