Syntax conformance test fixes
authorEileen McNaughton <eileen@fuzion.co.nz>
Tue, 3 Jun 2014 20:06:57 +0000 (08:06 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 3 Jun 2014 20:06:57 +0000 (08:06 +1200)
tests/phpunit/api/v3/SyntaxConformanceTest.php

index b065ddc659302fe54949860f9d2b3d4a45ee365a..13dc3b441b2ee73d3a01b6c295f299e757ee2b2d 100644 (file)
@@ -431,6 +431,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
           'pledge_contribution_page_id',
           'pledge_status_id',
           'pledge_campaign_id',
+          'pledge_financial_type_id',
         )
       ),
       'PaymentProcessorType' => array(
@@ -975,7 +976,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
         'id' => $entity['id'],
         $field => isset($entity[$field]) ? $entity[$field] : NULL,
       );
-      if(isset($updateParams['financial_type_id'])) {
+      if(isset($updateParams['financial_type_id']) && $entityName != 'Product') {
         //api has special handling on these 2 fields for backward compatibility reasons
         $entity['contribution_type_id'] = $updateParams['financial_type_id'];
       }