You are here

public function ModuleVersionTest::provideInvalidBranch in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/update/tests/src/Unit/ModuleVersionTest.php \Drupal\Tests\update\Unit\ModuleVersionTest::provideInvalidBranch()

Data provider for testInvalidBranch().

File

core/modules/update/tests/src/Unit/ModuleVersionTest.php, line 369

Class

ModuleVersionTest
@coversDefaultClass \Drupal\update\ModuleVersion

Namespace

Drupal\Tests\update\Unit

Code

public function provideInvalidBranch() {
  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',
  ]);
}