function FixturesBase::mkTmpDir
Creates a temporary directory.
Parameters
string $prefix: A prefix for the temporary directory name.
Return value
string Path to temporary directory
2 calls to FixturesBase::mkTmpDir()
- Fixtures::getLocationReplacements in core/
tests/ Drupal/ Tests/ Composer/ Plugin/ Scaffold/ Fixtures.php - Gets an Interpolator with 'web-root' and 'package-name' set.
- FixturesBase::createIsolatedComposerCacheDir in core/
tests/ Drupal/ Tests/ Composer/ Plugin/ FixturesBase.php - Creates an isolated cache directory for Composer.
File
-
core/
tests/ Drupal/ Tests/ Composer/ Plugin/ FixturesBase.php, line 181
Class
- FixturesBase
- Base class for fixtures to test composer plugins.
Namespace
Drupal\Tests\Composer\PluginCode
public function mkTmpDir(string $prefix) : string {
$tmpDir = $this->tmpDir($prefix);
$filesystem = new Filesystem();
$filesystem->ensureDirectoryExists($tmpDir);
return $tmpDir;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.