You are here

protected function ConfigOtherModuleTest::installModule in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config/src/Tests/ConfigOtherModuleTest.php \Drupal\config\Tests\ConfigOtherModuleTest::installModule()

Installs a module.

Parameters

string $module: The module name.

3 calls to ConfigOtherModuleTest::installModule()
ConfigOtherModuleTest::testInstallConfigEntityModuleFirst in core/modules/config/src/Tests/ConfigOtherModuleTest.php
Tests enabling the provider of the config entity type first.
ConfigOtherModuleTest::testInstallOtherModuleFirst in core/modules/config/src/Tests/ConfigOtherModuleTest.php
Tests enabling the provider of the default configuration first.
ConfigOtherModuleTest::testUninstall in core/modules/config/src/Tests/ConfigOtherModuleTest.php
Tests uninstalling Node module removes views which are dependent on it.

File

core/modules/config/src/Tests/ConfigOtherModuleTest.php, line 101
Contains \Drupal\config\Tests\ConfigOtherModuleTest.

Class

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

Namespace

Drupal\config\Tests

Code

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