Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f11d93fb
Unverified
Commit
f11d93fb
authored
Jun 09, 2020
by
alexpott
Browse files
Issue
#3127918
by jungle, longwave: Add funding info in composer.lock
parent
8a65b5f8
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
composer.lock
View file @
f11d93fb
This diff is collapsed.
Click to expand it.
core/tests/Drupal/Tests/ComposerIntegrationTest.php
View file @
f11d93fb
...
@@ -25,14 +25,16 @@ public function testComposerLockHash() {
...
@@ -25,14 +25,16 @@ public function testComposerLockHash() {
$this
->
assertSame
(
$content_hash
,
$lock
[
'content-hash'
]);
$this
->
assertSame
(
$content_hash
,
$lock
[
'content-hash'
]);
// @see \Composer\Repository\PathRepository::initialize()
// @see \Composer\Repository\PathRepository::initialize()
$core_content_hash
=
sha1
(
file_get_contents
(
$this
->
root
.
'/core/composer.json'
)
.
serialize
([]));
$core_lock_file_hash
=
''
;
$core_lock_file_hash
=
''
;
$options
=
[];
foreach
(
$lock
[
'packages'
]
as
$package
)
{
foreach
(
$lock
[
'packages'
]
as
$package
)
{
if
(
$package
[
'name'
]
===
'drupal/core'
)
{
if
(
$package
[
'name'
]
===
'drupal/core'
)
{
$core_lock_file_hash
=
$package
[
'dist'
][
'reference'
];
$core_lock_file_hash
=
$package
[
'dist'
][
'reference'
];
$options
=
$package
[
'transport-options'
]
??
[];
break
;
break
;
}
}
}
}
$core_content_hash
=
sha1
(
file_get_contents
(
$this
->
root
.
'/core/composer.json'
)
.
serialize
(
$options
));
$this
->
assertSame
(
$core_content_hash
,
$core_lock_file_hash
);
$this
->
assertSame
(
$core_content_hash
,
$core_lock_file_hash
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment