You are here

public function Fixtures::drupalCoreComposerFixture in Drupal 9

Same name and namespace in other branches
  1. 8 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 18

Class

Fixtures
Convenience class for creating fixtures.

Namespace

Drupal\Tests\Composer\Generator

Code

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