function UnpackRecipeTest::setUp

Same name in this branch
  1. 11.x core/tests/Drupal/Tests/Composer/Plugin/Unpack/Functional/UnpackRecipeTest.php \Drupal\Tests\Composer\Plugin\Unpack\Functional\UnpackRecipeTest::setUp()

Overrides BuildTestBase::setUp

File

core/tests/Drupal/BuildTests/Composer/Plugin/Unpack/Functional/UnpackRecipeTest.php, line 44

Class

UnpackRecipeTest
Tests recipe unpacking.

Namespace

Drupal\BuildTests\Composer\Plugin\Unpack\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->fileSystem = new Filesystem();
  $this->fixtures = new Fixtures();
  $this->fixtures
    ->createIsolatedComposerCacheDir();
  $this->fixturesDir = $this->fixtures
    ->tmpDir($this->name());
  $replacements = [
    'PROJECT_ROOT' => $this->fixtures
      ->projectRoot(),
    'COMPOSER_INSTALLERS' => InstalledVersions::getInstallPath('composer/installers'),
  ];
  $this->fixtures
    ->cloneFixtureProjects($this->fixturesDir, $replacements);
}

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