else { $this->
assertSession()->
pageTextContains('Module ' .
$module_names[0
] . ' has been enabled.'
);
} // Check that hook_modules_installed() was invoked with the expected list
// of modules, that each module's database tables now exist, and that
// appropriate messages appear in the logs.
foreach ($modules_to_install as $module_to_install) { $this->
assertSession()->
pageTextContains('hook_modules_installed fired for ' .
$module_to_install);
$this->
assertLogMessage('system', "%module module installed.",
['%module' =>
$module_to_install], RfcLogLevel::INFO
);
$this->
assertInstallModuleUpdates($module_to_install);
$this->
assertModuleSuccessfullyInstalled($module_to_install);
} // Verify the help page.
$this->
assertHelp($name,
$module->info
['name'
]);
// Uninstall the original module, plus everything else that was installed
// with it.
// @todo Remove in https://www.drupal.org/project/node/3261652
if ($name == 'forum'
) { // Forum has an extra step to be able to uninstall it.