public function LocaleLocaleLookupTest::providerTestFixOldPluralStyle in Drupal 9
Same name and namespace in other branches
- 8 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 99
Class
- LocaleLocaleLookupTest
- Tests LocaleLookup.
Namespace
Drupal\Tests\locale\FunctionalCode
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',
],
];
}