You are here

protected function ConfigOtherModuleTest::installModule in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/config/tests/src/Functional/ConfigOtherModuleTest.php \Drupal\Tests\config\Functional\ConfigOtherModuleTest::installModule()
  2. 9 core/modules/config/tests/src/Functional/ConfigOtherModuleTest.php \Drupal\Tests\config\Functional\ConfigOtherModuleTest::installModule()

Installs a module.

Parameters

string $module: The module name.

File

core/modules/config/tests/src/Functional/ConfigOtherModuleTest.php, line 124

Class

ConfigOtherModuleTest
Tests default configuration provided by a module that does not own it.

Namespace

Drupal\Tests\config\Functional

Code

protected function installModule($module) {
  $this->container
    ->get('module_installer')
    ->install([
    $module,
  ]);
  $this->container = \Drupal::getContainer();
}