public function ThemeHandlerTest::testGetBaseThemes in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Extension/ThemeHandlerTest.php \Drupal\Tests\Core\Extension\ThemeHandlerTest::testGetBaseThemes()
Tests getting the base themes for a set a defines themes.
@dataProvider providerTestGetBaseThemes
Parameters
array $themes: An array of available themes, keyed by the theme name.
string $theme: The theme name to find all its base themes.
array $expected: The expected base themes.
File
- core/
tests/ Drupal/ Tests/ Core/ Extension/ ThemeHandlerTest.php, line 209 - Contains \Drupal\Tests\Core\Extension\ThemeHandlerTest.
Class
- ThemeHandlerTest
- @coversDefaultClass \Drupal\Core\Extension\ThemeHandler @group Extension
Namespace
Drupal\Tests\Core\ExtensionCode
public function testGetBaseThemes(array $themes, $theme, array $expected) {
$base_themes = $this->themeHandler
->getBaseThemes($themes, $theme);
$this
->assertEquals($expected, $base_themes);
}