Verified Commit 2d50129e authored by godotislate's avatar godotislate
Browse files

task: #3579778 Removed modules should be included as a replace in composer.json

By: pcambra
By: quietone
By: berdir
By: cmlara
By: dcam
By: smustgrave
By: catch
By: godotislate
By: drumm
By: longwave
parent 0b166211
Loading
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -368,7 +368,7 @@
            "dist": {
                "type": "path",
                "url": "core",
                "reference": "a8d26b420c8e9972abe2e6dde3dca88a29451d49"
                "reference": "5903f5e2aa76522e01d0fa539fdec0d7217585ad"
            },
            "require": {
                "asm89/stack-cors": "^2.3",
@@ -455,7 +455,11 @@
                "drupal/core-transliteration": "self.version",
                "drupal/core-utility": "self.version",
                "drupal/core-uuid": "self.version",
                "drupal/core-version": "self.version"
                "drupal/core-version": "self.version",
                "drupal/search": "*",
                "drupal/settings_tray": "*",
                "drupal/shortcut": "*",
                "drupal/toolbar": "*"
            },
            "suggest": {
                "ext-zip": "Needed to extend the plugin.manager.archiver service capability with the handling of files in the ZIP format."
+5 −1
Original line number Diff line number Diff line
@@ -88,7 +88,11 @@
        "drupal/core-transliteration": "self.version",
        "drupal/core-utility": "self.version",
        "drupal/core-uuid": "self.version",
        "drupal/core-version": "self.version"
        "drupal/core-version": "self.version",
        "drupal/search": "*",
        "drupal/settings_tray": "*",
        "drupal/shortcut": "*",
        "drupal/toolbar": "*"
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
+6 −1
Original line number Diff line number Diff line
@@ -252,6 +252,11 @@ public function testAllCoreComponentsReplaced(): void {
    $json = json_decode(file_get_contents($this->root . '/core/composer.json'), FALSE);
    $composer_replace_packages = (array) $json->replace;

    // Filter out extensions removed from core.
    $composer_replace_packages_core = array_filter($composer_replace_packages, function ($k) {
      return (str_contains($k, "drupal/core"));
    }, ARRAY_FILTER_USE_KEY);

    // Get a list of all the composer.json files in the components path.
    $components_composer_json_files = [];

@@ -265,7 +270,7 @@ public function testAllCoreComponentsReplaced(): void {
    }

    $this->assertNotEmpty($components_composer_json_files);
    $this->assertCount(count($composer_replace_packages), $components_composer_json_files);
    $this->assertCount(count($composer_replace_packages_core), $components_composer_json_files);

    // Assert that each core components has a corresponding 'replace' in
    // composer.json.