You are here

protected function UpdateTestBase::getWebRoot in Automatic Updates 8.2

Returns the full path to the test site's document root.

Return value

string The full path of the test site's document root.

6 calls to UpdateTestBase::getWebRoot()
CoreUpdateTest::assertReadOnlyFileSystemError in tests/src/Build/CoreUpdateTest.php
Asserts that the update is prevented if the filesystem isn't writable.
CoreUpdateTest::assertUpdateSuccessful in tests/src/Build/CoreUpdateTest.php
Asserts that Drupal core was successfully updated.
CoreUpdateTest::createTestSite in tests/src/Build/CoreUpdateTest.php
Uses our already-installed dependencies to build a test site to update.
CoreUpdateTest::getConfigurationForUpdate in tests/src/Build/CoreUpdateTest.php
Returns composer.json changes that are needed to update core.
UpdateTestBase::installQuickStart in tests/src/Build/UpdateTestBase.php
Install a Drupal site using the quick start feature.

... See full list

File

tests/src/Build/UpdateTestBase.php, line 79

Class

UpdateTestBase
Base class for tests that perform in-place updates.

Namespace

Drupal\Tests\automatic_updates\Build

Code

protected function getWebRoot() : string {
  return $this
    ->getWorkspaceDirectory() . DIRECTORY_SEPARATOR . $this->webRoot;
}