Unverified Commit 4510338c authored by alexpott's avatar alexpott

Issue #3127918 by jungle, longwave: Add funding info in composer.lock

parent 98bbe510
This diff is collapsed.
......@@ -25,14 +25,16 @@ public function testComposerLockHash() {
$this->assertSame($content_hash, $lock['content-hash']);
// @see \Composer\Repository\PathRepository::initialize()
$core_content_hash = sha1(file_get_contents($this->root . '/core/composer.json') . serialize([]));
$core_lock_file_hash = '';
$options = [];
foreach ($lock['packages'] as $package) {
if ($package['name'] === 'drupal/core') {
$core_lock_file_hash = $package['dist']['reference'];
$options = $package['transport-options'] ?? [];
break;
}
}
$core_content_hash = sha1(file_get_contents($this->root . '/core/composer.json') . serialize($options));
$this->assertSame($core_content_hash, $core_lock_file_hash);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment