You are here

class TestMissingProjectInfo in Automatic Updates 8

Class TestMissingProjectInfo.

Hierarchy

Expanded class hierarchy of TestMissingProjectInfo

File

tests/src/Kernel/ReadinessChecker/MissingProjectInfoTest.php, line 54

Namespace

Drupal\Tests\automatic_updates\Kernel\ReadinessChecker
View 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

Namesort descending Modifiers Type Description Overrides
IgnoredPathsTrait::getConfigFactory protected function Gets the config factory.
IgnoredPathsTrait::getPathMatcher protected function Get the path matcher service.
IgnoredPathsTrait::isIgnoredPath protected function Check if the file path is ignored.
MissingProjectInfo::$modules protected property The module extension list.
MissingProjectInfo::$profiles protected property The profile extension list.
MissingProjectInfo::$themes protected property The theme extension list.
MissingProjectInfo::getExtensionsTypes protected function Get the extension types.
MissingProjectInfo::missingProjectInfoCheck protected function Check for projects missing project info.
MissingProjectInfo::run public function Run check. Overrides ReadinessCheckerInterface::run
MissingProjectInfo::__construct public function MissingProjectInfo constructor.
ProjectInfoTrait::getComposerJson protected function Get the composer.json as a JSON array.
ProjectInfoTrait::getExtensionList protected function Get extension list.
ProjectInfoTrait::getExtensionVersion protected function Get the extension version.
ProjectInfoTrait::getProjectName protected function Get the extension's project name.
ProjectInfoTrait::getSuffix protected function Get string suffix.
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
TestMissingProjectInfo::getInfos protected function Returns an array of info files information of available extensions. Overrides ProjectInfoTrait::getInfos