Skip to content
Snippets Groups Projects
Commit 9583e46d authored by jitendra's avatar jitendra
Browse files

Unit test to replicate #1317

parent a3a6eec7
No related branches found
No related tags found
No related merge requests found
......@@ -4344,6 +4344,9 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
'contribution_status_id' => 'Completed',
'trxn_id' => uniqid(),
]);
$payments = $this->callAPISuccess('Contribution', 'get', ['sequential' => 1])['values'];
//Assert if first payment and repeated payment has the same contribution amount.
$this->assertEquals($payments[0]['total_amount'], $payments[1]['total_amount']);
$this->callAPISuccessGetCount('Contribution', [], 2);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment