From 9583e46d13d886e830bee7a26c953fc6811e7a75 Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Tue, 15 Oct 2019 12:59:29 +0530 Subject: [PATCH] Unit test to replicate dev/core#1317 --- tests/phpunit/api/v3/ContributionTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/phpunit/api/v3/ContributionTest.php b/tests/phpunit/api/v3/ContributionTest.php index be3c2059ec..462b203f31 100644 --- a/tests/phpunit/api/v3/ContributionTest.php +++ b/tests/phpunit/api/v3/ContributionTest.php @@ -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); } -- 2.25.1