function ModuleVersionTest::testInvalidBranch
Same name in other branches
- 9 core/modules/update/tests/src/Unit/ModuleVersionTest.php \Drupal\Tests\update\Unit\ModuleVersionTest::testInvalidBranch()
@covers ::createFromSupportBranch
@dataProvider provideInvalidBranch
Parameters
string $branch: The branch to test.
File
-
core/
modules/ update/ tests/ src/ Unit/ ModuleVersionTest.php, line 359
Class
- ModuleVersionTest
- @coversDefaultClass \Drupal\update\ModuleVersion
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.