public function ExtensionVersionTest::testInvalidBranch in Drupal 9
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php \Drupal\Tests\Core\Extension\ExtensionVersionTest::testInvalidBranch()
 
@covers ::createFromSupportBranch
@dataProvider provideInvalidBranch
Parameters
string $branch: The branch to test.
File
- core/
tests/ Drupal/ Tests/ Core/ Extension/ ExtensionVersionTest.php, line 407  
Class
- ExtensionVersionTest
 - @coversDefaultClass \Drupal\Core\Extension\ExtensionVersion
 
Namespace
Drupal\Tests\Core\ExtensionCode
public function testInvalidBranch(string $branch) : void {
  $this
    ->expectException(\UnexpectedValueException::class);
  $this
    ->expectExceptionMessage("Invalid support branch: {$branch}");
  ExtensionVersion::createFromSupportBranch($branch);
}