Commit ca688464 authored by Ted Bowman's avatar Ted Bowman
Browse files

Issue #3275860 by tedbow: Mark our modules as experimental

parent 42c8205f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ name: 'Automatic Updates'
type: module
description: 'Automatically updates Drupal core.'
core_version_requirement: ^9.2
lifecycle: experimental
dependencies:
  - drupal:automatic_updates_9_3_shim
  - drupal:package_manager
+1 −0
Original line number Diff line number Diff line
@@ -3,5 +3,6 @@ type: module
description: 'Allows updates to themes and modules'
core_version_requirement: ^9.2
hidden: true
lifecycle: experimental
dependencies:
  - drupal:automatic_updates
+1 −0
Original line number Diff line number Diff line
@@ -2,3 +2,4 @@ name: 'Package Manager'
type: module
description: 'API module providing functionality for staging package installs and updates with Composer.'
core_version_requirement: ^9
lifecycle: experimental
+31 −0
Original line number Diff line number Diff line
<?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']);
    }
  }

}