diff --git a/tests/RegisterCardTest.php b/tests/RegisterCardTest.php index ec7dd0c..4c7a83c 100644 --- a/tests/RegisterCardTest.php +++ b/tests/RegisterCardTest.php @@ -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()