You are here

public function GenerateThemeTest::setUp in Drupal 9

Overrides BuildTestBase::setUp

File

core/tests/Drupal/Tests/Core/Command/GenerateThemeTest.php, line 29

Class

GenerateThemeTest
Tests the generate-theme commands.

Namespace

Drupal\Tests\Core\Command

Code

public function setUp() : void {
  parent::setUp();
  $php_executable_finder = new PhpExecutableFinder();
  $this->php = $php_executable_finder
    ->find();
  $this
    ->copyCodebase();
  $this
    ->executeCommand('COMPOSER_DISCARD_CHANGES=true composer install --no-dev --no-interaction');
  chdir($this
    ->getWorkingPath());
}