You are here

protected function ComposerHookTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php \Drupal\Tests\Composer\Plugin\Scaffold\Functional\ComposerHookTest::setUp()

File

core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php, line 55

Class

ComposerHookTest
Tests Composer Hooks that run scaffold operations.

Namespace

Drupal\Tests\Composer\Plugin\Scaffold\Functional

Code

protected function setUp() {
  $this->fileSystem = new Filesystem();
  $this->fixtures = new Fixtures();
  $this->fixtures
    ->createIsolatedComposerCacheDir();
  $this->fixturesDir = $this->fixtures
    ->tmpDir($this
    ->getName());
  $replacements = [
    'SYMLINK' => 'false',
    'PROJECT_ROOT' => $this->fixtures
      ->projectRoot(),
  ];
  $this->fixtures
    ->cloneFixtureProjects($this->fixturesDir, $replacements);
}