function ProjectInfoTest::providerGetSupportedBranches

Data provider for testGetSupportedBranches().

Return value

mixed[][] The test cases.

File

core/modules/package_manager/tests/src/Kernel/ProjectInfoTest.php, line 261

Class

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

Namespace

Drupal\Tests\package_manager\Kernel

Code

public static function providerGetSupportedBranches() : array {
    $dir = __DIR__ . '/../../fixtures/release-history/';
    return [
        'xml with supported branches' => [
            $dir . 'drupal.10.0.0.xml',
            [
                '9.5.',
                '9.6.',
                '9.7.',
                '10.0.',
            ],
        ],
        'xml with supported branches not set' => [
            $dir . 'drupal.9.8.1-supported_branches_not_set.xml',
            [],
        ],
        'xml with empty supported branches' => [
            $dir . 'drupal.9.8.1-empty_supported_branches.xml',
            [
                '',
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.