You are here

public function ThemeExtensionListTest::testThemeWithoutVersion in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Extension/ThemeExtensionListTest.php \Drupal\KernelTests\Core\Extension\ThemeExtensionListTest::testThemeWithoutVersion()
  2. 10 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 41

Class

ThemeExtensionListTest
@coversDefaultClass \Drupal\Core\Extension\ThemeExtensionList @group Extension

Namespace

Drupal\KernelTests\Core\Extension

Code

public function testThemeWithoutVersion() {
  $theme = \Drupal::service('extension.list.theme')
    ->get('test_theme_settings_features');
  $this
    ->assertNull($theme->info['version']);
}