function ExtensionVersionTest::testGetVersionExtra

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php \Drupal\Tests\Core\Extension\ExtensionVersionTest::testGetVersionExtra()
  2. 11.x core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php \Drupal\Tests\Core\Extension\ExtensionVersionTest::testGetVersionExtra()

@covers ::getVersionExtra

@dataProvider providerVersionInfos

Parameters

string $version: The version string to test.

array $expected_version_info: The expected version information.

File

core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php, line 57

Class

ExtensionVersionTest
@coversDefaultClass \Drupal\Core\Extension\ExtensionVersion

Namespace

Drupal\Tests\Core\Extension

Code

public function testGetVersionExtra(string $version, array $expected_version_info) : void {
    $version = ExtensionVersion::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.