You are here

public function Fixtures::createIsolatedComposerCacheDir in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php \Drupal\Tests\Composer\Plugin\Scaffold\Fixtures::createIsolatedComposerCacheDir()
  2. 10 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php \Drupal\Tests\Composer\Plugin\Scaffold\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\Scaffold

Code

public function createIsolatedComposerCacheDir() {
  $cacheDir = $this
    ->mkTmpDir('composer-cache');
  putenv("COMPOSER_CACHE_DIR={$cacheDir}");
}