function ExtensionUninstallCommandTest::themeInstalled

Whether the given theme is installed.

File

core/tests/Drupal/KernelTests/Core/Extension/Command/ExtensionUninstallCommandTest.php, line 66

Class

ExtensionUninstallCommandTest
Tests the 'ex:uninstall' command.

Namespace

Drupal\KernelTests\Core\Extension\Command

Code

private function themeInstalled(string $theme) : bool {
  return array_key_exists($theme, $this->container
    ->get('theme_handler')
    ->listInfo());
}

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