--CRM-16189, fixed CRM test
authorPradeep Nayak <pradpnayak@gmail.com>
Thu, 11 Aug 2016 00:29:45 +0000 (05:59 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Mon, 29 Aug 2016 13:19:20 +0000 (18:49 +0530)
tests/phpunit/CRM/Contribute/BAO/ContributionTest.php
tests/phpunit/CiviTest/CiviUnitTestCase.php

index 4b865a37526e5944daa373d392db8f73023e291d..8e6e7244b5370b7cd17ff038e8029d054f86d4fa 100644 (file)
@@ -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']);
index 801b4bba744ad3466f9f571e88b5116f1d534d63..1c0bfb43f8975903c2b1178fc4f9825da6300a47 100644 (file)
@@ -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',