function InfoParserUnitTest::providerInvalidLifecycle
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php \Drupal\Tests\Core\Extension\InfoParserUnitTest::providerInvalidLifecycle()
- 10 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 443
Class
- InfoParserUnitTest
- Tests InfoParser class and exception.
Namespace
Drupal\Tests\Core\ExtensionCode
public static 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.