function GenerateThemeTest::generateThemeFromStarterkit

Same name in this branch
  1. 11.x core/tests/Drupal/BuildTests/Command/GenerateThemeTest.php \Drupal\BuildTests\Command\GenerateThemeTest::generateThemeFromStarterkit()
Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Command/GenerateThemeTest.php \Drupal\Tests\Core\Command\GenerateThemeTest::generateThemeFromStarterkit()
  2. 10 core/tests/Drupal/Tests/Core/Command/GenerateThemeTest.php \Drupal\Tests\Core\Command\GenerateThemeTest::generateThemeFromStarterkit()
  3. 10 core/tests/Drupal/BuildTests/Command/GenerateThemeTest.php \Drupal\BuildTests\Command\GenerateThemeTest::generateThemeFromStarterkit()

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

Return value

\Symfony\Component\Process\Process The PHP process

7 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 51

Class

GenerateThemeTest
Tests the generate-theme commands.

Namespace

Drupal\Tests\Core\Command

Code

private function generateThemeFromStarterkit($env = NULL) : 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, $env);
    $process->setTimeout(60);
    return $process;
}

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