function ExtensionUninstallCommandTest::moduleInstalled

Whether the given module is installed.

7 calls to ExtensionUninstallCommandTest::moduleInstalled()
ExtensionUninstallCommandTest::testCannotMixModulesAndThemes in core/tests/Drupal/KernelTests/Core/Extension/Command/ExtensionUninstallCommandTest.php
Tests that modules and themes cannot be uninstalled in the same invocation.
ExtensionUninstallCommandTest::testDeclinedPromptAborts in core/tests/Drupal/KernelTests/Core/Extension/Command/ExtensionUninstallCommandTest.php
Tests that declining the prompt throws a UserAbortException.
ExtensionUninstallCommandTest::testDryRunUninstallsNothing in core/tests/Drupal/KernelTests/Core/Extension/Command/ExtensionUninstallCommandTest.php
Tests that --dry-run lists the operations but uninstalls nothing.
ExtensionUninstallCommandTest::testUninstallWithConfirmedDependent in core/tests/Drupal/KernelTests/Core/Extension/Command/ExtensionUninstallCommandTest.php
Tests confirming the prompt uninstalls the module and its dependent.
ExtensionUninstallCommandTest::testUninstallWithoutDependents in core/tests/Drupal/KernelTests/Core/Extension/Command/ExtensionUninstallCommandTest.php
Tests uninstalling a module without additional dependents.

... See full list

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.