function ThemeInstallerTest::testUninstallNonExisting
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php \Drupal\KernelTests\Core\Theme\ThemeInstallerTest::testUninstallNonExisting()
- 8.9.x core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php \Drupal\KernelTests\Core\Theme\ThemeInstallerTest::testUninstallNonExisting()
- 10 core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php \Drupal\KernelTests\Core\Theme\ThemeInstallerTest::testUninstallNonExisting()
Tests uninstalling a non-existing theme.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Theme/ ThemeInstallerTest.php, line 359
Class
- ThemeInstallerTest
- Tests installing and uninstalling of themes.
Namespace
Drupal\KernelTests\Core\ThemeCode
public function testUninstallNonExisting() : void {
$name = 'non_existing_theme';
$themes = $this->themeHandler()
->listInfo();
$this->assertEmpty(array_keys($themes));
$this->expectException(UnknownExtensionException::class);
$this->themeInstaller()
->uninstall([
$name,
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.