You are here

public function BuildTestBase::getWorkspaceDirectory in Drupal 9

Same name and namespace in other branches
  1. 8 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.

6 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

... See full list

File

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

Class

BuildTestBase
Provides a workspace to test build processes.

Namespace

Drupal\BuildTests\Framework

Code

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