function LocaleLookupTest::getCidProvider

Same name and namespace in other branches
  1. 10 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 373

Class

LocaleLookupTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21locale%21src%21LocaleLookup.php/class/LocaleLookup/9" title="A cache collector to allow for dynamic building of the locale cache." class="local">\Drupal\locale\LocaleLookup</a> @group locale

Namespace

Drupal\Tests\locale\Unit

Code

public 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.