function ExtensionVersionTest::provideInvalidBranch

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php \Drupal\Tests\Core\Extension\ExtensionVersionTest::provideInvalidBranch()
  2. 10 core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php \Drupal\Tests\Core\Extension\ExtensionVersionTest::provideInvalidBranch()

Data provider for testInvalidBranch().

Return value

string[] The test cases for testInvalidBranch().

File

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

Class

ExtensionVersionTest
@coversDefaultClass \Drupal\Core\Extension\ExtensionVersion

Namespace

Drupal\Tests\Core\Extension

Code

public static function provideInvalidBranch() : array {
    return self::createKeyedTestCases([
        '8.x-1.0',
        '8.x-2.x',
        '2.x-1.0',
        '1.1',
        '1.x',
        '1.1.x',
        '1.1.1',
        '1.1.1.1',
    ]);
}

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