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.

4 calls to TemplateProjectTestBase::getWebRoot()
PackageInstallTest::testPackageInstall in core/modules/package_manager/tests/src/Build/PackageInstallTest.php
Tests installing packages in a stage directory.
PackageInstallTest::testSubModules in core/modules/package_manager/tests/src/Build/PackageInstallTest.php
Tests installing a Drupal submodule.
PackageUpdateTest::testPackageUpdate in core/modules/package_manager/tests/src/Build/PackageUpdateTest.php
Tests updating packages in a stage directory.
TemplateProjectTestBase::writeSettings in core/modules/package_manager/tests/src/Build/TemplateProjectTestBase.php
Appends PHP code to the test site's settings.php.

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\Build

Code

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.