function GenerateThemeTest::doTestContribStarterkit
Same name and namespace in other branches
- main core/tests/Drupal/BuildTests/Command/GenerateThemeTest.php \Drupal\BuildTests\Command\GenerateThemeTest::doTestContribStarterkit()
Tests the generate-theme command on a theme with a release version number.
1 call to GenerateThemeTest::doTestContribStarterkit()
- GenerateThemeTest::testGenerateTheme in core/
tests/ Drupal/ BuildTests/ Command/ GenerateThemeTest.php - Tests the generate-theme command.
File
-
core/
tests/ Drupal/ BuildTests/ Command/ GenerateThemeTest.php, line 335
Class
- GenerateThemeTest
- Tests the generate-theme commands.
Namespace
Drupal\BuildTests\CommandCode
protected function doTestContribStarterkit() : void {
$this->setVersion('1.20');
$process = $this->generateThemeFromStarterkit();
$result = $process->run();
$this->assertStringContainsString('Theme generated successfully to themes/test_custom_theme', trim($process->getOutput()), $process->getErrorOutput());
$this->assertSame(0, $result);
$info = $this->assertThemeExists('themes/test_custom_theme');
self::assertArrayNotHasKey('hidden', $info);
self::assertArrayHasKey('generator', $info);
self::assertEquals('starterkit_theme:1.20', $info['generator']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.