function Fixtures::drupalCoreComposerFixture

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Composer/Generator/Fixtures.php \Drupal\Tests\Composer\Generator\Fixtures::drupalCoreComposerFixture()
  2. 8.9.x core/tests/Drupal/Tests/Composer/Generator/Fixtures.php \Drupal\Tests\Composer\Generator\Fixtures::drupalCoreComposerFixture()
  3. 10 core/tests/Drupal/Tests/Composer/Generator/Fixtures.php \Drupal\Tests\Composer\Generator\Fixtures::drupalCoreComposerFixture()

Generate a suitable DrupalCoreComposer fixture for testing.

Return value

\Drupal\Composer\Generator\Util\DrupalCoreComposer DrupalCoreComposer fixture.

File

core/tests/Drupal/Tests/Composer/Generator/Fixtures.php, line 20

Class

Fixtures
Convenience class for creating fixtures.

Namespace

Drupal\Tests\Composer\Generator

Code

public function drupalCoreComposerFixture() {
    return new DrupalCoreComposer($this->composerJson(), $this->composerLock());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.