Verified Commit 758f7c40 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

task: #3612952 Optimize GenerateThemeTest

By: catch
By: quietone
parent e179038b
Loading
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -51,7 +51,19 @@ protected function setUp(): void {
    parent::setUp();
    $php_executable_finder = new PhpExecutableFinder();
    $this->php = $php_executable_finder->find();
    $this->copyCodebase();
    $drupal_root = $this->getWorkingPathDrupalRoot() ?? '';

    $finder = $this->getCodebaseFinder();
    $finder->notPath([
      "#^{$drupal_root}vendor#",
      "#^{$drupal_root}core/assets#",
      "#^{$drupal_root}core/misc#",
      "#^{$drupal_root}core/phpstan-tmp#",
      "#^{$drupal_root}core/recipes#",
      "#^{$drupal_root}(.+)/tests#",
    ]);

    $this->copyCodebase($finder->getIterator());
    $this->executeCommand('COMPOSER_DISCARD_CHANGES=true composer install --no-dev --no-interaction');
    chdir($this->getWorkingPath());
    $this->starterKitInfoYamlLocation = $this->getWorkspaceDirectory() . '/core/themes/starterkit_theme/starterkit_theme.info.yml';