function TemplateProjectTestBase::getWebRoot
Returns the full path to the test site's document root.
Return value
string The full path of the test site's document root.
File
-
core/
modules/ package_manager/ tests/ src/ Build/ TemplateProjectTestBase.php, line 140
Class
- TemplateProjectTestBase
- Base class for tests which create a test site from a core project template.
Namespace
Drupal\Tests\package_manager\BuildCode
protected function getWebRoot() : string {
return $this->getWorkspaceDirectory() . '/' . $this->webRoot;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.