public function ExtensionVersionTest::testInvalidBranchCorePrefix in Drupal 10
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php \Drupal\Tests\Core\Extension\ExtensionVersionTest::testInvalidBranchCorePrefix()
@covers ::createFromSupportBranch
@dataProvider providerInvalidBranchCorePrefix
Parameters
string $branch: The branch to test.
File
- core/
tests/ Drupal/ Tests/ Core/ Extension/ ExtensionVersionTest.php, line 324
Class
- ExtensionVersionTest
- @coversDefaultClass \Drupal\Core\Extension\ExtensionVersion
Namespace
Drupal\Tests\Core\ExtensionCode
public function testInvalidBranchCorePrefix(string $branch) : void {
$this
->expectException(\UnexpectedValueException::class);
$this
->expectExceptionMessage("Unexpected version core prefix in {$branch}0. The only core prefix expected in \\Drupal\\Core\\Extension\\ExtensionVersion is: 8.x-");
ExtensionVersion::createFromSupportBranch($branch);
}