function BuildTestBase::getWorkingPath
Get the working directory within the workspace, creating if necessary.
Parameters
string $working_dir: The path within the workspace directory.
Return value
string The full path to the working directory within the workspace directory.
5 calls to BuildTestBase::getWorkingPath()
- BuildTestBase::copyCodebase in core/tests/ Drupal/ BuildTests/ Framework/ BuildTestBase.php 
- Copy the current working codebase into a workspace.
- BuildTestBase::instantiateServer in core/tests/ Drupal/ BuildTests/ Framework/ BuildTestBase.php 
- Do the work of making a server process.
- ComponentsIsolatedBuildTest::addExpectedRepositories in core/tests/ Drupal/ BuildTests/ Composer/ Component/ ComponentsIsolatedBuildTest.php 
- Adds expected repositories as path repositories to package under test.
- ComponentsIsolatedBuildTest::testComponentComposerJson in core/tests/ Drupal/ BuildTests/ Composer/ Component/ ComponentsIsolatedBuildTest.php 
- Test whether components' composer.json can be installed in isolation.
- GenerateThemeTest::setUp in core/tests/ Drupal/ BuildTests/ Command/ GenerateThemeTest.php 
File
- 
              core/tests/ Drupal/ BuildTests/ Framework/ BuildTestBase.php, line 204 
Class
- BuildTestBase
- Provides a workspace to test build processes.
Namespace
Drupal\BuildTests\FrameworkCode
protected function getWorkingPath($working_dir = NULL) {
  $full_path = $this->getWorkspaceDirectory();
  if ($working_dir) {
    $full_path .= '/' . $working_dir;
  }
  if (!file_exists($full_path)) {
    $fs = new SymfonyFilesystem();
    $fs->mkdir($full_path);
  }
  return $full_path;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
