function ExtensionVersionTest::provideInvalidBranch

Same name in other branches
  1. 10 core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php \Drupal\Tests\Core\Extension\ExtensionVersionTest::provideInvalidBranch()
  2. 11.x 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 419

Class

ExtensionVersionTest
@coversDefaultClass \Drupal\Core\Extension\ExtensionVersion

Namespace

Drupal\Tests\Core\Extension

Code

public 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.