function ExtensionVersionTest::providerInvalidVersionNumber

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php \Drupal\Tests\Core\Extension\ExtensionVersionTest::providerInvalidVersionNumber()
  2. 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 266

Class

ExtensionVersionTest
@coversDefaultClass \Drupal\Core\Extension\ExtensionVersion

Namespace

Drupal\Tests\Core\Extension

Code

public static 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',
    ]);
}

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