You are here

public function ProjectInfoTraitTest::providerInfos in Automatic Updates 8

Data provider for testTrait.

File

tests/src/Kernel/ProjectInfoTraitTest.php, line 36

Class

ProjectInfoTraitTest
@coversDefaultClass \Drupal\automatic_updates\ProjectInfoTrait @group automatic_updates

Namespace

Drupal\Tests\automatic_updates\Kernel

Code

public function providerInfos() {
  $infos['node']['expected'] = [
    'version' => NULL,
    'project' => 'drupal',
  ];
  $infos['node']['info'] = [
    'name' => 'Node',
    'type' => 'module',
    'description' => 'Allows content to be submitted to the site and displayed on pages.',
    'package' => 'Core',
    'version' => '8.8.x-dev',
    'project' => 'drupal',
    'core' => '8.x',
    'configure' => 'entity.node_type.collection',
    'dependencies' => [
      'drupal:text',
    ],
    'install path' => '',
  ];
  $infos['node']['extension_name'] = 'node';
  $infos['update']['expected'] = [
    'version' => NULL,
    'project' => 'drupal/update',
  ];
  $infos['update']['info'] = [
    'name' => 'Update manager',
    'type' => 'module',
    'description' => 'Checks for available updates, and can securely install or update modules and themes via a web interface.',
    'package' => 'Core',
    'core' => '8.x',
    'configure' => 'update.settings',
    'dependencies' => [
      'file',
    ],
    'install path' => '',
  ];
  $infos['update']['extension_name'] = 'drupal/update';
  $infos['system']['expected'] = [
    'version' => '8.8.0',
    'project' => 'drupal',
  ];
  $infos['system']['info'] = [
    'name' => 'System',
    'type' => 'module',
    'description' => 'Handles general site configuration for administrators.',
    'package' => 'Core',
    'version' => '8.8.0',
    'project' => 'drupal',
    'core' => '8.x',
    'required' => 'true',
    'configure' => 'system.admin_config_system',
    'dependencies' => [],
    'install path' => '',
  ];
  $infos['system']['extension_name'] = 'system';
  $infos['automatic_updates']['expected'] = [
    'version' => NULL,
    'project' => 'automatic_updates',
  ];
  $infos['automatic_updates']['info'] = [
    'name' => 'Automatic Updates',
    'type' => 'module',
    'description' => 'Display public service announcements and verify readiness for applying automatic updates to the site.',
    'package' => 'Core',
    'core' => '8.x',
    'configure' => 'automatic_updates.settings',
    'dependencies' => [
      'system',
      'update',
    ],
    'install path' => '',
  ];
  $infos['automatic_updates']['extension_name'] = 'automatic_updates';
  return $infos;
}