Skip to content

Commit 3825545

Browse files
committed
#21001 - make swiss group sympbol icu version dependent
1 parent 8d7b964 commit 3825545

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/Locale/Test/Unit/FormatTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ public function testGetPriceFormat($localeCode, $currencyCode, array $expectedRe
9090
*/
9191
public function getPriceFormatDataProvider(): array
9292
{
93+
$swissGroupSymbol = INTL_ICU_VERSION >= 59.1 ? '' : '\'';
9394
return [
9495
['en_US', 'USD', ['decimalSymbol' => '.', 'groupSymbol' => ',']],
9596
['de_DE', 'EUR', ['decimalSymbol' => ',', 'groupSymbol' => '.']],
96-
['de_CH', 'CHF', ['decimalSymbol' => '.', 'groupSymbol' => '\'']],
97+
['de_CH', 'CHF', ['decimalSymbol' => '.', 'groupSymbol' => $swissGroupSymbol]],
9798
['uk_UA', 'UAH', ['decimalSymbol' => ',', 'groupSymbol' => ' ']]
9899
];
99100
}

0 commit comments

Comments
 (0)