protected function ModuleUninstallTest::uninstallModules in Thunder 8.5
Same name and namespace in other branches
- 8.2 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::uninstallModules()
- 8.3 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::uninstallModules()
- 8.4 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::uninstallModules()
- 6.2.x tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::uninstallModules()
- 6.0.x tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::uninstallModules()
- 6.1.x tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::uninstallModules()
Uninstall modules.
Parameters
array $modules: Modules that should be uninstalled.
1 call to ModuleUninstallTest::uninstallModules()
- ModuleUninstallTest::testModules in tests/
src/ Functional/ ModuleUninstallTest.php - Compare active configuration with configuration Yaml files.
File
- tests/
src/ Functional/ ModuleUninstallTest.php, line 79
Class
- ModuleUninstallTest
- Test for checking of module uninstall functionality.
Namespace
Drupal\Tests\thunder\FunctionalCode
protected function uninstallModules(array $modules = []) {
if ($modules) {
$success = $this->container
->get('module_installer')
->uninstall($modules, TRUE);
$this
->assertTrue($success);
$this
->rebuildContainer();
}
}