Loading composer.lock +549 −9 File changed.Preview size limit exceeded, changes collapsed. Show changes core/tests/Drupal/Tests/ComposerIntegrationTest.php +3 −1 Original line number Diff line number Diff line Loading @@ -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); } Loading Loading
core/tests/Drupal/Tests/ComposerIntegrationTest.php +3 −1 Original line number Diff line number Diff line Loading @@ -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); } Loading