function ModuleVersionTest::testGetVersionExtra
Same name in other branches
- 8.9.x core/modules/update/tests/src/Unit/ModuleVersionTest.php \Drupal\Tests\update\Unit\ModuleVersionTest::testGetVersionExtra()
@covers ::getVersionExtra
@dataProvider providerVersionInfos
Parameters
string $version: The version string to test.
array $expected_version_info: The expected version information.
File
-
core/
modules/ update/ tests/ src/ Unit/ ModuleVersionTest.php, line 41
Class
- ModuleVersionTest
- @coversDefaultClass \Drupal\update\ModuleVersion
Namespace
Drupal\Tests\update\UnitCode
public function testGetVersionExtra($version, array $expected_version_info) {
$version = ModuleVersion::createFromVersionString($version);
$this->assertSame($expected_version_info['extra'], $version->getVersionExtra());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.