function DeprecationHelperTest::deprecatedHelperTestCases

Same name in other branches
  1. 11.x core/tests/Drupal/Tests/Component/Utility/DeprecationHelperTest.php \Drupal\Tests\Component\Utility\DeprecationHelperTest::deprecatedHelperTestCases()

File

core/tests/Drupal/Tests/Component/Utility/DeprecationHelperTest.php, line 36

Class

DeprecationHelperTest
@coversDefaultClass \Drupal\Component\Utility\DeprecationHelper @group Utility

Namespace

Drupal\Tests\Component\Utility

Code

public static function deprecatedHelperTestCases() : array {
    return [
        [
            'currentVersion' => '10.2.x-dev',
            'tests' => [
                '11.0.0' => 'deprecated',
                '10.3.0' => 'deprecated',
                '10.2.1' => 'deprecated',
                '10.2.0' => 'current',
                '10.1.0' => 'current',
                '10.0.0' => 'current',
                '9.5.0' => 'current',
            ],
        ],
        [
            'currentVersion' => '10.2.1',
            'tests' => [
                '11.0.0' => 'deprecated',
                '10.2.2' => 'deprecated',
                '10.2.1' => 'current',
                '10.2.0' => 'current',
                '10.1.0' => 'current',
                '10.0.0' => 'current',
                '9.5.0' => 'current',
            ],
        ],
        [
            'currentVersion' => '11.0-dev',
            'tests' => [
                '11.5.0' => 'deprecated',
                '11.0.1' => 'deprecated',
                '11.0.0' => 'current',
                '10.1.0' => 'current',
                '9.5.0' => 'current',
            ],
        ],
        [
            'currentVersion' => '11.0.0',
            'tests' => [
                '11.5.0' => 'deprecated',
                '11.2.1' => 'deprecated',
                '11.0.1' => 'deprecated',
                '11.0.0' => 'current',
                '10.1.0' => 'current',
                '9.5.0' => 'current',
            ],
        ],
    ];
}

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