Skip to content

Commit

Permalink
Test defaulc currency decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed May 14, 2018
1 parent 4a818d8 commit cbeecd9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Omnipay/Common/Message/AbstractRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,12 @@ public function testCurrencyDecimals()
$this->assertSame($this->request, $this->request->setCurrency('JPY'));
$this->assertSame(0, $this->request->getCurrencyDecimalPlaces());
}

public function testCurrencyDecimalsDefault()
{
$this->assertSame(2, $this->request->getCurrencyDecimalPlaces());
}

public function testFormatCurrency()
{
$this->assertSame('1234.00', $this->request->formatCurrency(1234));
Expand Down

0 comments on commit cbeecd9

Please sign in to comment.