function ModuleVersionTest::testInvalidBranch
@covers ::createFromSupportBranch
@dataProvider provideInvalidBranch
Parameters
string $branch: The branch to test.
File
-
core/
modules/ update/ tests/ src/ Unit/ ModuleVersionTest.php, line 360
Class
- ModuleVersionTest
- @coversDefaultClass \Drupal\update\ModuleVersion[[api-linebreak]]
Namespace
Drupal\Tests\update\UnitCode
public function testInvalidBranch($branch) {
$this->expectException(\UnexpectedValueException::class);
$this->expectExceptionMessage("Invalid support branch: {$branch}");
ModuleVersion::createFromSupportBranch($branch);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.