You are here

protected function EntityKernelTestBase::installModule in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php \Drupal\KernelTests\Core\Entity\EntityKernelTestBase::installModule()
  2. 9 core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php \Drupal\KernelTests\Core\Entity\EntityKernelTestBase::installModule()

Installs a module and refreshes services.

Parameters

string $module: The module to install.

File

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

Class

EntityKernelTestBase
Defines an abstract test base for entity kernel tests.

Namespace

Drupal\KernelTests\Core\Entity

Code

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