function ThemeExtensionListTest::testThemeWithoutVersion

Same name in other branches
  1. 8.9.x 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()
  3. 11.x 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\Extension

Code

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

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