function BuildTestBase::getWorkspaceDirectory

Same name and namespace in other branches
  1. 9 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::getWorkspaceDirectory()
  2. 8.9.x core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::getWorkspaceDirectory()
  3. 10 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::getWorkspaceDirectory()

Full path to the workspace where this test can build.

This is often a directory within the system's temporary directory.

Return value

string Full path to the workspace where this test can build.

32 calls to BuildTestBase::getWorkspaceDirectory()
BuildTestBase::getWorkingPath in core/tests/Drupal/BuildTests/Framework/BuildTestBase.php
Get the working directory within the workspace, creating if necessary.
BuildTestBase::getWorkspaceDrupalRoot in core/tests/Drupal/BuildTests/Framework/BuildTestBase.php
Gets the path to Drupal root in the workspace directory.
BuildTestBase::tearDown in core/tests/Drupal/BuildTests/Framework/BuildTestBase.php
BuildTestTest::testCopyCodebase in core/tests/Drupal/BuildTests/Framework/Tests/BuildTestTest.php
@covers ::copyCodebase
BuildTestTest::testWorkspace in core/tests/Drupal/BuildTests/Framework/Tests/BuildTestTest.php
Ensure that workspaces work.

... See full list

File

core/tests/Drupal/BuildTests/Framework/BuildTestBase.php, line 252

Class

BuildTestBase
Provides a workspace to test build processes.

Namespace

Drupal\BuildTests\Framework

Code

public function getWorkspaceDirectory() {
    return $this->workspaceDir;
}

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