protected function TestMissingProjectInfo::getInfos in Automatic Updates 8
Returns an array of info files information of available extensions.
Parameters
string $extension_type: The extension type.
Return value
array An associative array of extension information arrays, keyed by extension name.
Overrides ProjectInfoTrait::getInfos
File
- tests/
src/ Kernel/ ReadinessChecker/ MissingProjectInfoTest.php, line 59
Class
- TestMissingProjectInfo
- Class TestMissingProjectInfo.
Namespace
Drupal\Tests\automatic_updates\Kernel\ReadinessCheckerCode
protected function getInfos($extension_type) {
$infos = [];
if ($extension_type === 'modules') {
$infos['system'] = [
'name' => 'System',
'type' => 'module',
'description' => 'Handles general site configuration for administrators.',
'package' => 'Core',
'version' => 'VERSION',
'packaged' => FALSE,
'project' => $this
->getProjectName('system', [
'install path' => 'core',
]),
'install path' => drupal_get_path('module', 'system'),
'core' => '8.x',
'required' => 'true',
'configure' => 'system.admin_config_system',
'dependencies' => [],
];
}
return $infos;
}