public function ModuleVersionTest::providerInvalidVersionNumber in Drupal 8
Same name and namespace in other branches
- 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\UnitCode
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',
]);
}