Tests installing of multiple modules via enableModules().
Regression test: Each passed module has to be enabled and installed on its own, in the same way as module_enable() enables only one module after the other.
function testEnableModulesInstallMultiple() {
// Field retrieves entity type plugins, and EntityTypeManager calls into
// hook_entity_info_alter(). If both modules would be first enabled together
// instead of each on its own, then Node module's alter implementation
// would be called and this simply blows up. To further complicate matters,
// additionally install Comment module, whose entity bundles depend on node
// types.
$this
->enableModules(array(
'field',
'node',
'comment',
));
$this
->pass('Comment module was installed.');
}