function BuildTestBase::getWorkspaceDirectory

Same name in other branches
  1. 9 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::getWorkspaceDirectory()
  2. 10 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::getWorkspaceDirectory()
  3. 11.x 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.

5 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::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.
ComposerProjectTemplatesTest::testTemplateCreateProject in core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php
@dataProvider provideTemplateCreateProject

File

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

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.