function DrupalInstalledTest::setUp

Overrides BuildTestBase::setUp

File

core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/DrupalInstalledTest.php, line 37

Class

DrupalInstalledTest
Tests DrupalInstalled.php hash changes when scaffolding is run.

Namespace

Drupal\Tests\Composer\Plugin\Scaffold\Functional

Code

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

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