You are here

public function LocaleLookupTest::resolveCacheMissWithFallbackProvider in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/locale/tests/src/Unit/LocaleLookupTest.php \Drupal\Tests\locale\Unit\LocaleLookupTest::resolveCacheMissWithFallbackProvider()

Provides test data for testResolveCacheMissWithFallback().

File

core/modules/locale/tests/src/Unit/LocaleLookupTest.php, line 195
Contains \Drupal\Tests\locale\Unit\LocaleLookupTest.

Class

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

Namespace

Drupal\Tests\locale\Unit

Code

public function resolveCacheMissWithFallbackProvider() {
  return array(
    array(
      'cs',
      'test',
      'irrelevant',
      'test v české',
    ),
    array(
      'cs',
      'fake',
      'irrelevant',
      'falešný',
    ),
    array(
      'cs',
      'missing pl',
      'irrelevant',
      'chybějící pl',
    ),
    array(
      'cs',
      'missing cs',
      'irrelevant',
      'missing cs',
    ),
    array(
      'cs',
      'missing both',
      'irrelevant',
      'missing both',
    ),
    // Testing PL with fallback to cs, en.
    array(
      'pl',
      'test',
      'irrelevant',
      'test po polsku',
    ),
    array(
      'pl',
      'fake',
      'irrelevant',
      'ściema',
    ),
    array(
      'pl',
      'missing pl',
      'irrelevant',
      'chybějící pl',
    ),
    array(
      'pl',
      'missing cs',
      'irrelevant',
      'zaginiony czech',
    ),
    array(
      'pl',
      'missing both',
      'irrelevant',
      'missing both',
    ),
  );
}