You are here

protected function ConfigInstallTest::installModules in Zircon Profile 8

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

Installs a module.

Parameters

array $modules: The module names.

4 calls to ConfigInstallTest::installModules()
ConfigInstallTest::testCollectionInstallationCollectionConfigEntity in core/modules/config/src/Tests/ConfigInstallTest.php
Tests collections which do not support config entities install correctly.
ConfigInstallTest::testDependencyChecking in core/modules/config/src/Tests/ConfigInstallTest.php
Tests the configuration with unmet dependencies is not installed.
ConfigInstallTest::testLanguage in core/modules/config/src/Tests/ConfigInstallTest.php
Tests imported configuration entities with and without language information.
ConfigInstallTest::testModuleInstallation in core/modules/config/src/Tests/ConfigInstallTest.php
Tests module installation.

File

core/modules/config/src/Tests/ConfigInstallTest.php, line 249
Contains \Drupal\config\Tests\ConfigInstallTest.

Class

ConfigInstallTest
Tests installation of configuration objects in installation functionality.

Namespace

Drupal\config\Tests

Code

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