You are here

public function ExtensionVersionTest::providerInvalidVersionNumber in Drupal 9

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php \Drupal\Tests\Core\Extension\ExtensionVersionTest::providerInvalidVersionNumber()

Data provider for testInvalidVersionNumber().

Return value

string[] The test cases for testInvalidVersionNumber().

File

core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php, line 264

Class

ExtensionVersionTest
@coversDefaultClass \Drupal\Core\Extension\ExtensionVersion

Namespace

Drupal\Tests\Core\Extension

Code

public function providerInvalidVersionNumber() : array {
  return static::createKeyedTestCases([
    '',
    '8',
    'x',
    'xx',
    '8.x-',
    '8.x',
    '.x',
    '.0',
    '.1',
    '.1.0',
    '1.0.',
    'x.1',
    '1.x.0',
    '1.1.x',
    '1.1.x-extra',
    'x.1.1',
    '1.1.1.1',
    '1.1.1.0',
  ]);
}