function TemplateProjectTestBase::copyFixtureToTempDirectory

Copies a fixture directory to a temporary directory and returns its path.

Parameters

string $fixture_directory: The fixture directory.

Return value

string The temporary directory.

File

core/modules/package_manager/tests/src/Build/TemplateProjectTestBase.php, line 578

Class

TemplateProjectTestBase
Base class for tests which create a test site from a core project template.

Namespace

Drupal\Tests\package_manager\Build

Code

protected function copyFixtureToTempDirectory(string $fixture_directory) : string {
    $temp_directory = $this->getWorkspaceDirectory() . '/fixtures_temp_' . $this->randomMachineName(20);
    static::copyFixtureFilesTo($fixture_directory, $temp_directory);
    return $temp_directory;
}

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