Skip to content

Commit 6d92d49

Browse files
author
Sergey Shvets
committed
MAGETWO-91771: Comma special character in cart price rule condition value results in incorrect rule
fix unit tests
1 parent 5c92fc4 commit 6d92d49

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
@@ -53,6 +53,7 @@ protected function setUp()
5353

5454
/** @var \Magento\Directory\Model\CurrencyFactory|\PHPUnit_Framework_MockObject_MockObject $currencyFactory */
5555
$currencyFactory = $this->getMockBuilder(\Magento\Directory\Model\CurrencyFactory::class)
56+
->disableOriginalConstructor()
5657
->getMock();
5758

5859
$this->formatModel = new \Magento\Framework\Locale\Format(
@@ -87,7 +88,7 @@ public function getPriceFormatDataProvider()
8788
['en_US', ['decimalSymbol' => '.', 'groupSymbol' => ',']],
8889
['de_DE', ['decimalSymbol' => ',', 'groupSymbol' => '.']],
8990
['de_CH', ['decimalSymbol' => '.', 'groupSymbol' => '\'']],
90-
['uk_UA', ['decimalSymbol' => ',', 'groupSymbol' => ' ']]
91+
['uk_UA', ['decimalSymbol' => ',', 'groupSymbol' => ' ']]
9192
];
9293
}
9394

0 commit comments

Comments
 (0)