function EntityKernelTestBase::uninstallModule

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php \Drupal\KernelTests\Core\Entity\EntityKernelTestBase::uninstallModule()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php \Drupal\KernelTests\Core\Entity\EntityKernelTestBase::uninstallModule()
  3. 11.x core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php \Drupal\KernelTests\Core\Entity\EntityKernelTestBase::uninstallModule()

Uninstalls a module and refreshes services.

Parameters

string $module: The module to uninstall.

File

core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php, line 179

Class

EntityKernelTestBase
Defines an abstract test base for entity kernel tests.

Namespace

Drupal\KernelTests\Core\Entity

Code

protected function uninstallModule($module) {
    $this->disableModules([
        $module,
    ]);
    $this->refreshServices();
}

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