public function ModuleUninstallTest::testModules in Thunder 6.0.x
Same name and namespace in other branches
- 8.5 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::testModules()
- 8.2 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::testModules()
- 8.3 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::testModules()
- 8.4 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::testModules()
- 6.2.x tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::testModules()
- 6.1.x tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::testModules()
Compare active configuration with configuration Yaml files.
File
- tests/
src/ Functional/ ModuleUninstallTest.php, line 86
Class
- ModuleUninstallTest
- Test for checking of module uninstall functionality.
Namespace
Drupal\Tests\thunder\FunctionalCode
public function testModules() {
$uninstallFailures = [];
foreach (static::$moduleLists as $modules) {
try {
$this
->installModules($modules);
$this
->uninstallModules($modules);
$this
->installModules($modules);
} catch (\Exception $e) {
// Store errors, so that all modules can be tested.
$uninstallFailures[] = [
'modules' => $modules,
'error' => $e
->getMessage(),
];
}
}
if ($uninstallFailures) {
// Output all errors for modules tested.
throw new \Exception(print_r($uninstallFailures, TRUE));
}
}