// Test help for the required modules.
foreach($required_modulesas$name => $module){ $this->assertHelp($name, $module->info['name']); }
// Go through each module in the list and try to install and uninstall
// it with its dependencies.
foreach($all_modulesas$name => $module){ $was_installed_list = \Drupal::moduleHandler()->getModuleList();
// Start a list of modules that we expect to be installed this time.
$modules_to_install = [$name]; foreach(array_keys($module->requires)as$dependency){ if(isset($all_modules[$dependency])){