Skip to content

Commit cbeecd9

Browse files
committed
Test defaulc currency decimals
1 parent 4a818d8 commit cbeecd9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/Omnipay/Common/Message/AbstractRequestTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,12 @@ public function testCurrencyDecimals()
302302
$this->assertSame($this->request, $this->request->setCurrency('JPY'));
303303
$this->assertSame(0, $this->request->getCurrencyDecimalPlaces());
304304
}
305+
306+
public function testCurrencyDecimalsDefault()
307+
{
308+
$this->assertSame(2, $this->request->getCurrencyDecimalPlaces());
309+
}
310+
305311
public function testFormatCurrency()
306312
{
307313
$this->assertSame('1234.00', $this->request->formatCurrency(1234));

0 commit comments

Comments
 (0)