You are here

protected function GenerateThemeTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Command/GenerateThemeTest.php \Drupal\Tests\Core\Command\GenerateThemeTest::setUp()

File

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

Class

GenerateThemeTest
Tests the generate-theme commands.

Namespace

Drupal\Tests\Core\Command

Code

protected function setUp() : void {
  if (version_compare(\SQLite3::version()['versionString'], Tasks::SQLITE_MINIMUM_VERSION) < 0) {
    $this
      ->markTestSkipped();
  }
  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());
}