function InfoParserUnitTest::providerCoreVersionRequirementInvalid

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php \Drupal\Tests\Core\Extension\InfoParserUnitTest::providerCoreVersionRequirementInvalid()

Data provider for testCoreVersionRequirementInvalid().

File

core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php, line 450

Class

InfoParserUnitTest
Tests InfoParser class and exception.

Namespace

Drupal\Tests\Core\Extension

Code

public function providerCoreVersionRequirementInvalid() {
    return [
        '8.0.0-alpha2' => [
            'alpha2',
            '8.0.0-alpha2',
        ],
        '8.6.0-rc1' => [
            'rc1',
            '8.6.0-rc1',
        ],
        '^8.7' => [
            '8_7',
            '^8.7',
        ],
        '>8.6.3' => [
            'gt8_6_3',
            '>8.6.3',
        ],
    ];
}

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