From cc6a3f38ac1183d4f9664f5d2a0e414006139861 Mon Sep 17 00:00:00 2001
From: phenaproxima <phenaproxima@205645.no-reply.drupal.org>
Date: Wed, 6 Jul 2022 14:30:24 +0000
Subject: [PATCH] Issue #3293656 by phenaproxima, narendra.rajwar27, Ishani
 Patel: Remove the experimental warnings

---
 README.md                                 |  6 -----
 automatic_updates.info.yml                |  1 -
 automatic_updates.module                  |  2 +-
 package_manager/package_manager.info.yml  |  1 -
 src/Form/UpdaterForm.php                  |  2 --
 tests/src/Unit/EnsureExperimentalTest.php | 31 -----------------------
 6 files changed, 1 insertion(+), 42 deletions(-)
 delete mode 100644 tests/src/Unit/EnsureExperimentalTest.php

diff --git a/README.md b/README.md
index 7e98a3bd94..e101fd2f6c 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,5 @@
 Automatic Updates
 ---------------
-🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
-
-Warning the 8.x-2.x version of this module is still in development and should only be used development and testing.
-
-🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
-
 ### Automatic Updates Initiative
 
 - Follow and read up on
diff --git a/automatic_updates.info.yml b/automatic_updates.info.yml
index e6fee5ee29..37d097bec1 100644
--- a/automatic_updates.info.yml
+++ b/automatic_updates.info.yml
@@ -2,7 +2,6 @@ name: 'Automatic Updates'
 type: module
 description: 'Automatically updates Drupal core.'
 core_version_requirement: ^9.3
-lifecycle: experimental
 dependencies:
   - drupal:package_manager
   - drupal:update
diff --git a/automatic_updates.module b/automatic_updates.module
index 9b5d8534ae..42d886df60 100644
--- a/automatic_updates.module
+++ b/automatic_updates.module
@@ -45,7 +45,7 @@ function automatic_updates_mail(string $key, array &$message, array $params): vo
       '@previous_version' => $params['previous_version'],
       '@updated_version' => $params['updated_version'],
     ]);
-    $message['body'][] = t('This e-mail was sent by the Automatic Updates module, which is an experimental module. Furthermore, unattended updates are not yet fully supported.');
+    $message['body'][] = t('This e-mail was sent by the Automatic Updates module. Unattended updates are not yet fully supported.');
     $message['body'][] = t('If you are using this feature in production, it is strongly recommended for you to visit your site and ensure that everything still looks good.');
   }
 }
diff --git a/package_manager/package_manager.info.yml b/package_manager/package_manager.info.yml
index 80185a8d5e..2e1cbc2755 100644
--- a/package_manager/package_manager.info.yml
+++ b/package_manager/package_manager.info.yml
@@ -2,4 +2,3 @@ name: 'Package Manager'
 type: module
 description: 'API module providing functionality for staging package installs and updates with Composer.'
 core_version_requirement: ^9.3
-lifecycle: experimental
diff --git a/src/Form/UpdaterForm.php b/src/Form/UpdaterForm.php
index 0f7b46ef04..2e8d98705d 100644
--- a/src/Form/UpdaterForm.php
+++ b/src/Form/UpdaterForm.php
@@ -119,8 +119,6 @@ final class UpdaterForm extends FormBase {
    * {@inheritdoc}
    */
   public function buildForm(array $form, FormStateInterface $form_state) {
-    $this->messenger()->addWarning($this->t('This is an experimental Automatic Updater using Composer. Use at your own risk.'));
-
     if ($this->updater->isAvailable()) {
       $stage_exists = FALSE;
     }
diff --git a/tests/src/Unit/EnsureExperimentalTest.php b/tests/src/Unit/EnsureExperimentalTest.php
deleted file mode 100644
index 55374505b4..0000000000
--- a/tests/src/Unit/EnsureExperimentalTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-namespace Drupal\Tests\automatic_updates\Unit;
-
-use Drupal\Tests\UnitTestCase;
-use Symfony\Component\Yaml\Yaml;
-
-/**
- * Tests to ensure the modules are experimental.
- *
- * @group automatic_updates
- */
-class EnsureExperimentalTest extends UnitTestCase {
-
-  /**
-   * Tests that the modules are experimental.
-   */
-  public function testModulesExperimental() {
-    $info_files = [
-      __DIR__ . '/../../../automatic_updates_extensions/automatic_updates_extensions.info.yml',
-      __DIR__ . '/../../../automatic_updates.info.yml',
-      __DIR__ . '/../../../package_manager/package_manager.info.yml',
-
-    ];
-    foreach ($info_files as $info_file) {
-      $info = Yaml::parseFile($info_file);
-      $this->assertSame('experimental', $info['lifecycle']);
-    }
-  }
-
-}
-- 
GitLab