You are here

protected function ModuleUninstallTest::installModules in Thunder 8.5

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::installModules()
  2. 8.3 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::installModules()
  3. 8.4 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::installModules()
  4. 6.2.x tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::installModules()
  5. 6.0.x tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::installModules()
  6. 6.1.x tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::installModules()

Install modules.

Parameters

array $modules: Modules that should be installed.

1 call to ModuleUninstallTest::installModules()
ModuleUninstallTest::testModules in tests/src/Functional/ModuleUninstallTest.php
Compare active configuration with configuration Yaml files.

File

tests/src/Functional/ModuleUninstallTest.php, line 63

Class

ModuleUninstallTest
Test for checking of module uninstall functionality.

Namespace

Drupal\Tests\thunder\Functional

Code

protected function installModules(array $modules = []) {
  if ($modules) {
    $success = $this->container
      ->get('module_installer')
      ->install($modules, TRUE);
    $this
      ->assertTrue($success);
    $this
      ->rebuildContainer();
  }
}