function ModuleVersionTest::providerInvalidVersionNumber

Same name in other branches
  1. 9 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 225

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',
    ]);
}

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