Commit 0d934d20 authored by Ted Bowman's avatar Ted Bowman Committed by Ted Bowman
Browse files

Issue #3319497 by tedbow, yash.rode, Wim Leers: Build test failure on local in...

Issue #3319497 by tedbow, yash.rode, Wim Leers: Build test failure on local in 8.x-2.x due to drupal core packages being added to vendor.json
parent f689d746
Loading
Loading
Loading
Loading
+10 −0
Changes for package_manager/tests/src/Build/TemplateProjectTestBase.php: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -296,8 +296,18 @@ END;
    $packages = [];
    $drupal_root = $this->getDrupalRoot();

    // @todo Add assertions that these packages never get added to vendor.json
    //   and determine if this logic should removed in the core merge request in
    //   https://drupal.org/i/3319679.
    $core_packages = [
      'drupal/core-vendor-hardening',
      'drupal/core-project-message',
    ];
    foreach ($this->getInstalledPackages() as $package) {
      $name = $package['name'];
      if (in_array($name, $core_packages, TRUE)) {
        continue;
      }
      $path = "$drupal_root/vendor/$name";

      // We are building a set of path repositories to projects in the vendor