Skip to content

Commit

Permalink
Merge pull request #46 from Judopay/FixChangeAmountTest
Browse files Browse the repository at this point in the history
FixChangeAmountTest
  • Loading branch information
chrisurun authored Jan 20, 2020
2 parents f4b3bd1 + 176c7f3 commit de6cc93
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/RegisterCardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,17 @@ public function testPaymentWithUnknownCurrency()

public function testPaymentChangedAmount()
{
// When we try to change the amount
$registerCard = $this->getBuilder()
->setAttribute('amount', 100500)
->setAttribute('amount', 1.01)
->build(ConfigHelper::getConfig());

$result = $registerCard->create();

AssertionHelper::assertSuccessfulPayment($result);
$this->assertEquals(1.01, $result['amount']);

// The amount is set by the API
$this->assertEquals(2.00, $result['amount']);
}

public function testPaymentWithoutCurrency()
Expand Down

0 comments on commit de6cc93

Please sign in to comment.