protected function ModuleUninstallTest::installModules in Thunder 6.1.x
Same name and namespace in other branches
- 8.5 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::installModules()
- 8.2 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::installModules()
- 8.3 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::installModules()
- 8.4 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::installModules()
- 6.2.x tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::installModules()
- 6.0.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 57
Class
- ModuleUninstallTest
- Test for checking of module uninstall functionality.
Namespace
Drupal\Tests\thunder\FunctionalCode
protected function installModules(array $modules = []) {
if ($modules) {
$success = $this->container
->get('module_installer')
->install($modules, TRUE);
$this
->assertTrue($success);
$this
->rebuildContainer();
}
}