Unverified Commit 4510338c authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 98bbe510
Loading
Loading
Loading
Loading
+549 −9

File changed.

Preview size limit exceeded, changes collapsed.

+3 −1
Original line number Diff line number Diff line
@@ -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);
  }