public function ExtensionVersionTest::testInvalidVersionNumber in Drupal 9
@covers ::createFromVersionString
@dataProvider providerInvalidVersionNumber
Parameters
string $version: The version string to test.
File
- core/
tests/ Drupal/ Tests/ Core/ Extension/ ExtensionVersionTest.php, line 252
Class
- ExtensionVersionTest
- @coversDefaultClass \Drupal\Core\Extension\ExtensionVersion
Namespace
Drupal\Tests\Core\ExtensionCode
public function testInvalidVersionNumber(string $version) : void {
$this
->expectException(\UnexpectedValueException::class);
$this
->expectExceptionMessage("Unexpected version number in: {$version}");
ExtensionVersion::createFromVersionString($version);
}