You are here

private function GenerateThemeTest::generateThemeFromStarterkit in Drupal 10

Generates PHP process to generate a theme from core's starterkit theme.

Return value

\Symfony\Component\Process\Process The PHP process

6 calls to GenerateThemeTest::generateThemeFromStarterkit()
GenerateThemeTest::test in core/tests/Drupal/Tests/Core/Command/GenerateThemeTest.php
Tests the generate-theme command.
GenerateThemeTest::testContribStarterkit in core/tests/Drupal/Tests/Core/Command/GenerateThemeTest.php
Tests the generate-theme command on a theme with a release version number.
GenerateThemeTest::testContribStarterkitDevSnapshot in core/tests/Drupal/Tests/Core/Command/GenerateThemeTest.php
Tests the generate-theme command on a theme with a dev version number.
GenerateThemeTest::testContribStarterkitDevSnapshotWithGitNotInstalled in core/tests/Drupal/Tests/Core/Command/GenerateThemeTest.php
Tests the generate-theme command on a theme with a dev version without git.
GenerateThemeTest::testCustomStarterkit in core/tests/Drupal/Tests/Core/Command/GenerateThemeTest.php
Tests the generate-theme command on a theme without a version number.

... See full list

File

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

Class

GenerateThemeTest
Tests the generate-theme commands.

Namespace

Drupal\Tests\Core\Command

Code

private function generateThemeFromStarterkit() : Process {
  $install_command = [
    $this->php,
    'core/scripts/drupal',
    'generate-theme',
    'test_custom_theme',
    '--name="Test custom starterkit theme"',
    '--description="Custom theme generated from a starterkit theme"',
  ];
  $process = new Process($install_command, NULL);
  $process
    ->setTimeout(60);
  return $process;
}