We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a818d8 commit cbeecd9Copy full SHA for cbeecd9
tests/Omnipay/Common/Message/AbstractRequestTest.php
@@ -302,6 +302,12 @@ public function testCurrencyDecimals()
302
$this->assertSame($this->request, $this->request->setCurrency('JPY'));
303
$this->assertSame(0, $this->request->getCurrencyDecimalPlaces());
304
}
305
+
306
+ public function testCurrencyDecimalsDefault()
307
+ {
308
+ $this->assertSame(2, $this->request->getCurrencyDecimalPlaces());
309
+ }
310
311
public function testFormatCurrency()
312
{
313
$this->assertSame('1234.00', $this->request->formatCurrency(1234));
0 commit comments