You are here

public function BuilderTest::builderTestData in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Composer/Generator/BuilderTest.php \Drupal\Tests\Composer\Generator\BuilderTest::builderTestData()
  2. 10 core/tests/Drupal/Tests/Composer/Generator/BuilderTest.php \Drupal\Tests\Composer\Generator\BuilderTest::builderTestData()

Test data for testBuilder

File

core/tests/Drupal/Tests/Composer/Generator/BuilderTest.php, line 21

Class

BuilderTest
Test DrupalCoreRecommendedBuilder

Namespace

Drupal\Tests\Composer\Generator

Code

public function builderTestData() {
  return [
    [
      DrupalCoreRecommendedBuilder::class,
      [
        'name' => 'drupal/core-recommended',
        'type' => 'metapackage',
        'description' => 'Locked core dependencies; require this project INSTEAD OF drupal/core.',
        'license' => 'GPL-2.0-or-later',
        'require' => [
          'drupal/core' => Composer::drupalVersionBranch(),
          'symfony/polyfill-ctype' => 'v1.12.0',
          'symfony/yaml' => 'v3.4.32',
        ],
        'conflict' => [
          'webflo/drupal-core-strict' => '*',
        ],
      ],
    ],
    [
      DrupalDevDependenciesBuilder::class,
      [
        'name' => 'drupal/core-dev',
        'type' => 'metapackage',
        'description' => 'require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.',
        'license' => 'GPL-2.0-or-later',
        'require' => [
          'behat/mink' => '^1.8',
        ],
        'conflict' => [
          'webflo/drupal-core-require-dev' => '*',
        ],
      ],
    ],
    [
      DrupalPinnedDevDependenciesBuilder::class,
      [
        'name' => 'drupal/core-dev-pinned',
        'type' => 'metapackage',
        'description' => 'Pinned require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.',
        'license' => 'GPL-2.0-or-later',
        'require' => [
          'drupal/core' => Composer::drupalVersionBranch(),
          'behat/mink' => 'v1.8.0',
          'symfony/css-selector' => 'v4.3.5',
        ],
        'conflict' => [
          'webflo/drupal-core-require-dev' => '*',
        ],
      ],
    ],
  ];
}