function Fixtures::createIsolatedComposerCacheDir
Create an isolated cache directory for Composer.
File
-
core/
tests/ Drupal/ Tests/ Composer/ Plugin/ Scaffold/ Fixtures.php, line 296
Class
- Fixtures
- Convenience class for creating fixtures.
Namespace
Drupal\Tests\Composer\Plugin\ScaffoldCode
public function createIsolatedComposerCacheDir() {
$cacheDir = $this->mkTmpDir('composer-cache');
putenv("COMPOSER_CACHE_DIR={$cacheDir}");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.