--CRM-17240, fixed tests
authorPradeep Nayak <pradpnayak@gmail.com>
Thu, 24 Sep 2015 11:01:06 +0000 (16:31 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Thu, 24 Sep 2015 11:01:06 +0000 (16:31 +0530)
tests/phpunit/api/v3/ContributionPageTest.php
tests/phpunit/api/v3/ContributionTest.php
tests/phpunit/api/v3/PriceFieldValueTest.php

index d167500f7981f72cd66e9b0533b225c1894ac147..0d33c526a14815f7c05c7b8f153f8b1185bf142a 100644 (file)
@@ -531,7 +531,7 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
         'name' => 'membership_amount',
         'label' => 'Membership Amount',
         'amount' => 1,
-        'financial_type_id' => 1,
+        'financial_type_id' => 'Donation',
         'format.only_id' => TRUE,
         'membership_type_id' => $membershipTypeID,
         'price_field_id' => $priceField['id'],
@@ -565,6 +565,7 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
           'price_set_id' => $priceSetID,
           'price_field_id' => $priceField['id'],
           'label' => 'Long Haired Goat',
+          'financial_type_id' => 'Donation',
           'amount' => 20,
         )
       );
@@ -572,6 +573,7 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
           'price_set_id' => $priceSetID,
           'price_field_id' => $priceField['id'],
           'label' => 'Shoe-eating Goat',
+          'financial_type_id' => 'Donation',
           'amount' => 10,
         )
       );
index a16d2615232b64372f3cdc1b2a7f022f8354fd0f..497703f6e52889d67c9b9b29541251e2240a7e17 100644 (file)
@@ -1669,6 +1669,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
         'price_field_id' => $priceField['id'],
         'label' => 'Long Haired Goat',
         'amount' => 20,
+        'financial_type_id' => 'Donation',
         'membership_type_id' => $membershipTypeID,
         'membership_num_terms' => 1,
       )
@@ -1679,6 +1680,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
         'price_field_id' => $priceField['id'],
         'label' => 'Shoe-eating Goat',
         'amount' => 10,
+        'financial_type_id' => 'Donation',
         'membership_type_id' => $membershipTypeID,
         'membership_num_terms' => 2,
       )
index 1f03648cab176c0d3bbd071e71c831626d692283..b90962337eb9568820ecf0cc93dc32661675082f 100644 (file)
@@ -80,6 +80,7 @@ class api_v3_PriceFieldValueTest extends CiviUnitTestCase {
       'name' => 'rye grass',
       'label' => 'juicy and healthy',
       'amount' => 1,
+      'financial_type_id' => 1,
     );
 
     $membershipOrgId = $this->organizationCreate(NULL);