class TestMissingProjectInfo in Automatic Updates 8
Class TestMissingProjectInfo.
Hierarchy
- class \Drupal\automatic_updates\ReadinessChecker\MissingProjectInfo implements ReadinessCheckerInterface uses IgnoredPathsTrait, ProjectInfoTrait, StringTranslationTrait
- class \Drupal\Tests\automatic_updates\Kernel\ReadinessChecker\TestMissingProjectInfo
Expanded class hierarchy of TestMissingProjectInfo
File
- tests/
src/ Kernel/ ReadinessChecker/ MissingProjectInfoTest.php, line 54
Namespace
Drupal\Tests\automatic_updates\Kernel\ReadinessCheckerView source
class TestMissingProjectInfo extends MissingProjectInfo {
/**
* {@inheritdoc}
*/
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
IgnoredPathsTrait:: |
protected | function | Gets the config factory. | |
IgnoredPathsTrait:: |
protected | function | Get the path matcher service. | |
IgnoredPathsTrait:: |
protected | function | Check if the file path is ignored. | |
MissingProjectInfo:: |
protected | property | The module extension list. | |
MissingProjectInfo:: |
protected | property | The profile extension list. | |
MissingProjectInfo:: |
protected | property | The theme extension list. | |
MissingProjectInfo:: |
protected | function | Get the extension types. | |
MissingProjectInfo:: |
protected | function | Check for projects missing project info. | |
MissingProjectInfo:: |
public | function |
Run check. Overrides ReadinessCheckerInterface:: |
|
MissingProjectInfo:: |
public | function | MissingProjectInfo constructor. | |
ProjectInfoTrait:: |
protected | function | Get the composer.json as a JSON array. | |
ProjectInfoTrait:: |
protected | function | Get extension list. | |
ProjectInfoTrait:: |
protected | function | Get the extension version. | |
ProjectInfoTrait:: |
protected | function | Get the extension's project name. | |
ProjectInfoTrait:: |
protected | function | Get string suffix. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
TestMissingProjectInfo:: |
protected | function |
Returns an array of info files information of available extensions. Overrides ProjectInfoTrait:: |