function BrowserTestBase::setUpAppRoot

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::setUpAppRoot()
  2. 10 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::setUpAppRoot()
  3. 9 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::setUpAppRoot()

Sets up the root application path.

Deprecated

in drupal:12.0.0 and is removed from drupal:13.0.0. Access $this->root directly.

See also

https://www.drupal.org/node/3574112

File

core/tests/Drupal/Tests/BrowserTestBase.php, line 343

Class

BrowserTestBase
Provides a test case for functional Drupal tests.

Namespace

Drupal\Tests

Code

protected function setUpAppRoot() : void {
  @trigger_error(__METHOD__ . '() is deprecated in drupal:12.0.0 and is removed from drupal:13.0.0. Access $this->root directly. See https://www.drupal.org/node/3574112', E_USER_DEPRECATED);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.