You are here

public function ExtensionVersionTest::provideInvalidBranch in Drupal 10

Same name and namespace in other branches
  1. 9 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',
  ]);
}