You are here

protected property PackageManagerTest::$packages in Composer Manager 8

Package fixtures.

Type: array

File

tests/src/Unit/PackageManagerTest.php, line 25

Class

PackageManagerTest
@coversDefaultClass \Drupal\composer_manager\PackageManager @group composer_manager

Namespace

Drupal\Tests\composer_manager\Unit

Code

protected $packages = [
  'core' => [
    'name' => 'drupal/core',
    'type' => 'drupal-core',
  ],
  'extension' => [
    'commerce_kickstart' => [
      'name' => 'drupal/commerce_kickstart',
      'require' => [
        'symfony/css-selector' => '2.6.*',
      ],
      'extra' => [
        'path' => 'profiles/commerce_kickstart/composer.json',
      ],
    ],
    'test1' => [
      'name' => 'drupal/test1',
      'require' => [
        'symfony/intl' => '2.6.*',
      ],
      'extra' => [
        'path' => 'modules/test1/composer.json',
      ],
    ],
    'test2' => [
      'name' => 'drupal/test2',
      'require' => [
        'symfony/config' => '2.6.*',
      ],
      'extra' => [
        'path' => 'sites/all/modules/test2/composer.json',
      ],
    ],
  ],
  'installed' => [
    [
      'name' => 'symfony/dependency-injection',
      'version' => 'v2.6.3',
      'description' => 'Symfony DependencyInjection Component',
      'homepage' => 'http://symfony.com',
    ],
    [
      'name' => 'symfony/event-dispatcher',
      'version' => 'v2.6.3',
      'description' => 'Symfony EventDispatcher Component',
      'homepage' => 'http://symfony.com',
      'require' => [
        // symfony/event-dispatcher doesn't really have this requirement,
        // we're lying for test purposes.
        'symfony/yaml' => 'dev-master',
      ],
    ],
    [
      'name' => 'symfony/yaml',
      'version' => 'dev-master',
      'source' => [
        'type' => 'git',
        'url' => 'https://github.com/symfony/Yaml.git',
        'reference' => '3346fc090a3eb6b53d408db2903b241af51dcb20',
      ],
    ],
  ],
];