function ExtensionInstallCommandTest::themeInstalled

Same name and namespace in other branches
  1. main core/modules/system/tests/src/Kernel/Command/ExtensionInstallCommandTest.php \Drupal\Tests\system\Kernel\Command\ExtensionInstallCommandTest::themeInstalled()

Whether the given theme is installed.

File

core/modules/system/tests/src/Kernel/Command/ExtensionInstallCommandTest.php, line 53

Class

ExtensionInstallCommandTest
Tests the 'ex:install' command.

Namespace

Drupal\Tests\system\Kernel\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.