function LocaleLookupTest::getCidProvider

Same name in other branches
  1. 9 core/modules/locale/tests/src/Unit/LocaleLookupTest.php \Drupal\Tests\locale\Unit\LocaleLookupTest::getCidProvider()
  2. 11.x core/modules/locale/tests/src/Unit/LocaleLookupTest.php \Drupal\Tests\locale\Unit\LocaleLookupTest::getCidProvider()

Provides test data for testGetCid().

File

core/modules/locale/tests/src/Unit/LocaleLookupTest.php, line 376

Class

LocaleLookupTest
@coversDefaultClass \Drupal\locale\LocaleLookup @group locale

Namespace

Drupal\Tests\locale\Unit

Code

public static function getCidProvider() {
    return [
        [
            [
                'a',
            ],
            'locale:en:irrelevant:a',
        ],
        [
            [
                'a',
                'b',
            ],
            'locale:en:irrelevant:a:b',
        ],
        [
            [
                'b',
                'a',
            ],
            'locale:en:irrelevant:a:b',
        ],
    ];
}

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