function InfoParserUnitTest::providerInvalidLifecycle

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php \Drupal\Tests\Core\Extension\InfoParserUnitTest::providerInvalidLifecycle()
  2. 11.x core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php \Drupal\Tests\Core\Extension\InfoParserUnitTest::providerInvalidLifecycle()

Data provider for testInvalidLifecycle().

File

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

Class

InfoParserUnitTest
Tests InfoParser class and exception.

Namespace

Drupal\Tests\Core\Extension

Code

public function providerInvalidLifecycle() {
    return [
        'bogus' => [
            'bogus',
            "'lifecycle: bogus' is not valid",
        ],
        'two words' => [
            'deprecated obsolete',
            "'lifecycle: deprecated obsolete' is not valid",
        ],
        'wrong case' => [
            'Experimental',
            "'lifecycle: Experimental' is not valid",
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.