You are here

public function LocaleLocaleLookupTest::providerTestFixOldPluralStyle in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php \Drupal\Tests\locale\Functional\LocaleLocaleLookupTest::providerTestFixOldPluralStyle()

Provides data for testFixOldPluralStyle().

Return value

array An array of test data:

  • translation value
  • expected result

File

core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php, line 98

Class

LocaleLocaleLookupTest
Tests LocaleLookup.

Namespace

Drupal\Tests\locale\Functional

Code

public function providerTestFixOldPluralStyle() {
  return [
    'non-plural translation' => [
      '@count[2] non-plural test',
      '@count[2] non-plural test',
    ],
    'plural translation' => [
      '@count[2] plural test' . PoItem::DELIMITER,
      '@count plural test',
    ],
  ];
}