Skip to content

Commit

Permalink
add test case indicating a floating point issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wiese authored and aniansson committed Mar 20, 2018
1 parent fe15c23 commit 17e5b8e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions tests/EdgeToEdge/Routes/NewDonationRouteTest.php
Expand Up @@ -22,12 +22,12 @@ public function testGivenPaymentInput_paymentDataIsInitiallyValidated( array $va
);

$this->assertContains(
'Payment data: ' . $expected[ 'validity' ],
'Payment data: ' . $expected['validity'],
$client->getResponse()->getContent()
);

$this->assertContains(
'Amount: ' . $expected[ 'formattedAmount' ] . "\n",
'Amount: ' . $expected['formattedAmount'] . "\n",
$client->getResponse()->getContent()
);
}
Expand Down Expand Up @@ -56,6 +56,17 @@ public function paymentInputProvider(): array {
'formattedAmount' => '123,45'
]
],
[
[
'amountGiven' => '8.70',
'zahlweise' => 'BEZ',
'periode' => '0'
],
[
'validity' => 'valid',
'formattedAmount' => '8,70'
]
],
[
[
'betrag_auswahl' => '0',
Expand Down

0 comments on commit 17e5b8e

Please sign in to comment.