comparison core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 7a779792577d
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
1 <?php 1 <?php
2 2
3 namespace Drupal\Tests\locale\Functional; 3 namespace Drupal\Tests\locale\Functional;
4 4
5 use Drupal\Core\StringTranslation\PluralTranslatableMarkup; 5 use Drupal\Component\Gettext\PoItem;
6 use Drupal\language\Entity\ConfigurableLanguage; 6 use Drupal\language\Entity\ConfigurableLanguage;
7 use Drupal\Tests\BrowserTestBase; 7 use Drupal\Tests\BrowserTestBase;
8 8
9 /** 9 /**
10 * Tests LocaleLookup. 10 * Tests LocaleLookup.
91 * - expected result 91 * - expected result
92 */ 92 */
93 public function providerTestFixOldPluralStyle() { 93 public function providerTestFixOldPluralStyle() {
94 return [ 94 return [
95 'non-plural translation' => ['@count[2] non-plural test', '@count[2] non-plural test'], 95 'non-plural translation' => ['@count[2] non-plural test', '@count[2] non-plural test'],
96 'plural translation' => ['@count[2] plural test' . PluralTranslatableMarkup::DELIMITER, '@count plural test'], 96 'plural translation' => ['@count[2] plural test' . PoItem::DELIMITER, '@count plural test'],
97 ]; 97 ];
98 } 98 }
99 99
100 } 100 }