public function ThemeInstallerTest::testUninstallSubTheme in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php \Drupal\KernelTests\Core\Theme\ThemeInstallerTest::testUninstallSubTheme()
Tests uninstalling a sub-theme.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Theme/ ThemeInstallerTest.php, line 272
Class
- ThemeInstallerTest
- Tests installing and uninstalling of themes.
Namespace
Drupal\KernelTests\Core\ThemeCode
public function testUninstallSubTheme() {
$name = 'test_subtheme';
$base_name = 'test_basetheme';
$this
->themeInstaller()
->install([
$name,
]);
$this
->themeInstaller()
->uninstall([
$name,
]);
$themes = $this
->themeHandler()
->listInfo();
$this
->assertFalse(isset($themes[$name]));
$this
->assertTrue(isset($themes[$base_name]));
}