function ExtensionUninstallCommandTest::moduleInstalled

Whether the given module is installed.

File

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

Class

ExtensionUninstallCommandTest
Tests the 'ex:uninstall' command.

Namespace

Drupal\KernelTests\Core\Extension\Command

Code

private function moduleInstalled(string $module) : bool {
  return $this->container
    ->get('module_handler')
    ->moduleExists($module);
}

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