function ProjectInfoTest::testGetSupportedBranches

@covers ::getSupportedBranches

@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 297

Class

ProjectInfoTest
@coversDefaultClass \Drupal\package_manager\ProjectInfo @group auto_updates @internal

Namespace

Drupal\Tests\package_manager\Kernel

Code

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.