public function ThemeExtensionListTest::testThemeWithoutVersion in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Extension/ThemeExtensionListTest.php \Drupal\KernelTests\Core\Extension\ThemeExtensionListTest::testThemeWithoutVersion()
- 9 core/tests/Drupal/KernelTests/Core/Extension/ThemeExtensionListTest.php \Drupal\KernelTests\Core\Extension\ThemeExtensionListTest::testThemeWithoutVersion()
Tests that themes have an empty default version set.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Extension/ ThemeExtensionListTest.php, line 36
Class
- ThemeExtensionListTest
- @coversDefaultClass \Drupal\Core\Extension\ThemeExtensionList @group Extension
Namespace
Drupal\KernelTests\Core\ExtensionCode
public function testThemeWithoutVersion() {
$theme = \Drupal::service('extension.list.theme')
->get('test_theme_settings_features');
$this
->assertNull($theme->info['version']);
}