function ThemeEngineExtensionListTest::testGetList
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Extension/ThemeEngineExtensionListTest.php \Drupal\KernelTests\Core\Extension\ThemeEngineExtensionListTest::testGetlist()
- 8.9.x core/tests/Drupal/KernelTests/Core/Extension/ThemeEngineExtensionListTest.php \Drupal\KernelTests\Core\Extension\ThemeEngineExtensionListTest::testGetlist()
- 11.x core/tests/Drupal/KernelTests/Core/Extension/ThemeEngineExtensionListTest.php \Drupal\KernelTests\Core\Extension\ThemeEngineExtensionListTest::testGetList()
@covers ::getList
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Extension/ ThemeEngineExtensionListTest.php, line 18
Class
- ThemeEngineExtensionListTest
- @coversDefaultClass \Drupal\Core\Extension\ThemeEngineExtensionList @group Extension
Namespace
Drupal\KernelTests\Core\ExtensionCode
public function testGetList() : void {
// Confirm that all theme engines are available.
$theme_engines = \Drupal::service('extension.list.theme_engine')->getList();
$this->assertArrayHasKey('twig', $theme_engines);
$this->assertArrayHasKey('nyan_cat', $theme_engines);
$this->assertCount(2, $theme_engines);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.