From 4303ea8972509b79cfa1ef4d862ec674723be30b Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Thu, 11 Aug 2016 05:59:45 +0530 Subject: [PATCH] --CRM-16189, fixed CRM test --- tests/phpunit/CRM/Contribute/BAO/ContributionTest.php | 4 ++-- tests/phpunit/CiviTest/CiviUnitTestCase.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php b/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php index 4b865a3752..8e6e7244b5 100644 --- a/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php +++ b/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php @@ -855,7 +855,7 @@ WHERE eft.entity_id = %1 AND ft.to_financial_account_id <> %2"; 'contact_id' => $contactId, 'receive_date' => '2010-01-20', 'total_amount' => 100, - 'financial_type_id' => 3, + 'financial_type_id' => 4, ); $order = $this->callAPISuccess('order', 'create', $params); $allowUpdate = CRM_Contribute_BAO_Contribution::allowUpdateRevenueRecognitionDate($order['id']); @@ -866,7 +866,7 @@ WHERE eft.entity_id = %1 AND ft.to_financial_account_id <> %2"; 'contact_id' => $contactId, 'receive_date' => '2010-01-20', 'total_amount' => 300, - 'financial_type_id' => 1, + 'financial_type_id' => 4, 'contribution_status_id' => 1, ); $priceFields = $this->createPriceSet('event', $event['id']); diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index 801b4bba74..1c0bfb43f8 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -1154,7 +1154,7 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase { 'period_type' => 'rolling', 'member_of_contact_id' => $memberOfOrganization, 'domain_id' => 1, - 'financial_type_id' => 1, + 'financial_type_id' => 2, 'is_active' => 1, 'sequential' => 1, 'visibility' => 'Public', -- 2.25.1