function Fixtures::composerLock
Same name in other branches
- 9 core/tests/Drupal/Tests/Composer/Generator/Fixtures.php \Drupal\Tests\Composer\Generator\Fixtures::composerLock()
- 10 core/tests/Drupal/Tests/Composer/Generator/Fixtures.php \Drupal\Tests\Composer\Generator\Fixtures::composerLock()
- 11.x core/tests/Drupal/Tests/Composer/Generator/Fixtures.php \Drupal\Tests\Composer\Generator\Fixtures::composerLock()
Data for a composer.lock fixture.
Return value
array composer.lock fixture data.
1 call to Fixtures::composerLock()
- Fixtures::drupalCoreComposerFixture in core/
tests/ Drupal/ Tests/ Composer/ Generator/ Fixtures.php - Generate a suitable DrupalCoreComposer fixture for testing.
File
-
core/
tests/ Drupal/ Tests/ Composer/ Generator/ Fixtures.php, line 53
Class
- Fixtures
- Convenience class for creating fixtures.
Namespace
Drupal\Tests\Composer\GeneratorCode
protected function composerLock() {
return [
'_readme' => [
'This is a composer.lock fixture. It contains only a subset of a',
'typical composer.lock file (just what is needed for testing).',
],
'content-hash' => 'da9910627bab73a256b39ceda83d7167',
'packages' => [
[
'name' => "composer/installers",
'version' => 'v1.9.0',
'source' => [
'type' => 'git',
'url' => 'https://github.com/composer/installers.git',
'reference' => 'b93bcf0fa1fccb0b7d176b0967d969691cd74cca',
],
],
[
'name' => 'symfony/polyfill-ctype',
'version' => 'v1.12.0',
'source' => [
'type' => 'git',
'url' => 'https://github.com/symfony/polyfill-ctype.git',
'reference' => '550ebaac289296ce228a706d0867afc34687e3f4',
],
],
[
'name' => 'symfony/yaml',
'version' => 'v3.4.32',
'source' => [
'type' => 'git',
'url' => 'https://github.com/symfony/yaml.git',
'reference' => '768f817446da74a776a31eea335540f9dcb53942',
],
],
],
'packages-dev' => [
[
'name' => 'behat/mink',
'version' => 'v1.8.0',
'source' => [
'type' => 'git',
'url' => 'https://github.com/minkphp/Mink.git',
'reference' => 'e1772aabb6b654464264a6cc72158c8b3409d8bc',
],
],
[
'name' => 'symfony/css-selector',
'version' => 'v4.3.5',
'source' => [
'type' => 'git',
'url' => 'https://github.com/symfony/css-selector.git',
'reference' => 'f4b3ff6a549d9ed28b2b0ecd1781bf67cf220ee9',
],
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.