function ExtensionVersionTest::testInvalidBranch
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/Core/Extension/ExtensionVersionTest.php \Drupal\Tests\Core\Extension\ExtensionVersionTest::testInvalidBranch()
- 11.x 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 <a href="/api/drupal/core%21lib%21Drupal%21Core%21Extension%21ExtensionVersion.php/class/ExtensionVersion/9" title="Provides an extension version value object." class="local">\Drupal\Core\Extension\ExtensionVersion</a>
Namespace
Drupal\Tests\Core\ExtensionCode
public function testInvalidBranch(string $branch) : void {
$this->expectException(\UnexpectedValueException::class);
$this->expectExceptionMessage("Invalid support branch: {$branch}");
ExtensionVersion::createFromSupportBranch($branch);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.