function ProjectInfoTest::testGetSupportedBranches
Same name and namespace in other branches
- 11.x core/modules/package_manager/tests/src/Kernel/ProjectInfoTest.php \Drupal\Tests\package_manager\Kernel\ProjectInfoTest::testGetSupportedBranches()
Tests get supported branches.
Attributes
#[DataProvider('providerGetSupportedBranches')]
Parameters
string $release_xml: The path of the release metadata.
string[] $expected_supported_branches: The expected supported branches.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ ProjectInfoTest.php, line 300
Class
Namespace
Drupal\Tests\package_manager\KernelCode
public function testGetSupportedBranches(string $release_xml, array $expected_supported_branches) : void {
$this->setReleaseMetadata([
'drupal' => $release_xml,
]);
$project_info = new ProjectInfo('drupal');
$this->assertSame($expected_supported_branches, $project_info->getSupportedBranches());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.