function FixturesBase::createIsolatedComposerCacheDir

Creates an isolated cache directory for Composer.

File

core/tests/Drupal/Tests/Composer/Plugin/FixturesBase.php, line 191

Class

FixturesBase
Base class for fixtures to test composer plugins.

Namespace

Drupal\Tests\Composer\Plugin

Code

public function createIsolatedComposerCacheDir() : void {
    $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.