You are here

protected function EntityUnitTestBase::uninstallModule in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Entity/EntityUnitTestBase.php \Drupal\system\Tests\Entity\EntityUnitTestBase::uninstallModule()

Uninstalls a module and refreshes services.

Parameters

string $module: The module to uninstall.

File

core/modules/system/src/Tests/Entity/EntityUnitTestBase.php, line 165
Contains \Drupal\system\Tests\Entity\EntityUnitTestBase.

Class

EntityUnitTestBase
Defines an abstract test base for entity unit tests.

Namespace

Drupal\system\Tests\Entity

Code

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