You are here

public function ModuleVersionTest::providerInvalidVersionNumber 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::providerInvalidVersionNumber()

Data provider for testInvalidVersionNumber().

File

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

Class

ModuleVersionTest
@coversDefaultClass \Drupal\update\ModuleVersion

Namespace

Drupal\Tests\update\Unit

Code

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