DrupalTestCaseTrait::$root
The Drupal root directory.
Type: root
File
-
core/
tests/ Drupal/ Tests/ DrupalTestCaseTrait.php, line 26
Class
- DrupalTestCaseTrait
- Provides methods common across all Drupal abstract base test classes.
Namespace
Drupal\TestsCode
protected string $root {
get {
if (!isset($this->root)) {
$this->root = static::getDrupalRoot();
}
return $this->root;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.