You are here

public function InfoParserUnitTest::providerValidLifecycle in Drupal 10

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php \Drupal\Tests\Core\Extension\InfoParserUnitTest::providerValidLifecycle()

Data provider for testValidLifecycle().

File

core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php, line 409

Class

InfoParserUnitTest
Tests InfoParser class and exception.

Namespace

Drupal\Tests\Core\Extension

Code

public function providerValidLifecycle() {
  return [
    'empty' => [
      '',
      ExtensionLifecycle::STABLE,
    ],
    'experimental' => [
      ExtensionLifecycle::EXPERIMENTAL,
      ExtensionLifecycle::EXPERIMENTAL,
    ],
    'stable' => [
      ExtensionLifecycle::STABLE,
      ExtensionLifecycle::STABLE,
    ],
    'deprecated' => [
      ExtensionLifecycle::DEPRECATED,
      ExtensionLifecycle::DEPRECATED,
    ],
    'obsolete' => [
      ExtensionLifecycle::OBSOLETE,
      ExtensionLifecycle::OBSOLETE,
    ],
  ];
}