public function ExtensionVersionTest::testInvalidVersionCorePrefix in Drupal 9
@covers ::createFromVersionString
@dataProvider providerInvalidVersionCorePrefix
Parameters
string $version: The version string to test.
File
- core/
tests/ Drupal/ Tests/ Core/ Extension/ ExtensionVersionTest.php, line 295
Class
- ExtensionVersionTest
- @coversDefaultClass \Drupal\Core\Extension\ExtensionVersion
Namespace
Drupal\Tests\Core\ExtensionCode
public function testInvalidVersionCorePrefix(string $version) : void {
$this
->expectException(\UnexpectedValueException::class);
$this
->expectExceptionMessage("Unexpected version core prefix in {$version}. The only core prefix expected in \\Drupal\\Core\\Extension\\ExtensionVersion is: 8.x-");
ExtensionVersion::createFromVersionString($version);
}