From b7990bb692efbb1525e9f93d1007489776f35d55 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 7 Dec 2015 14:16:05 +1300 Subject: [PATCH] CRM-17627 test for ensuring correct refund transaction date Change-Id: If9276cd7d32bb7fef8071c07cb763dc4fe66da4e --- tests/phpunit/api/v3/ContributionTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/api/v3/ContributionTest.php b/tests/phpunit/api/v3/ContributionTest.php index 77ee69fe85..5b5c3bbb50 100644 --- a/tests/phpunit/api/v3/ContributionTest.php +++ b/tests/phpunit/api/v3/ContributionTest.php @@ -1049,7 +1049,8 @@ class api_v3_ContributionTest extends CiviUnitTestCase { $contribution = $this->callAPISuccess('contribution', 'create', $contribParams); $newParams = array_merge($contribParams, array( 'id' => $contribution['id'], - 'contribution_status_id' => 7, + 'contribution_status_id' => 'Refunded', + 'cancel_date' => '2015-01-01 09:00', ) ); @@ -1988,6 +1989,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase { 'to_financial_account_id' => 6, 'total_amount' => -100, 'status_id' => 7, + 'trxn_date' => '2015-01-01 09:00:00', ); } elseif ($context == 'cancelPending') { -- 2.25.1