enable price set single value alter test
authorEileen McNaughton <eileen@fuzion.co.nz>
Sun, 19 Oct 2014 09:58:09 +0000 (22:58 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Sun, 19 Oct 2014 09:58:09 +0000 (22:58 +1300)
tests/phpunit/api/v3/SyntaxConformanceTest.php

index 60bcc443e169f9f1e2e5b047287b1182f79e2c7b..643fb2d83c73d51c042d57edd0f17f10ab19aa59 100644 (file)
@@ -349,7 +349,6 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
       'Participant',
       'ParticipantPayment',
       'LineItem',
-      'PriceSet',
       'PriceField',
       'PriceFieldValue',
       'PledgePayment',
@@ -1067,7 +1066,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
         'id' => $entity['id'],
         $field => isset($entity[$field]) ? $entity[$field] : NULL,
       );
-      if(isset($updateParams['financial_type_id']) && !in_array($entityName, array('Product', 'MembershipType'))) {
+      if(isset($updateParams['financial_type_id']) && !in_array($entityName, array('Product', 'MembershipType', 'PriceSet'))) {
         //api has special handling on these 2 fields for backward compatibility reasons
         $entity['contribution_type_id'] = $updateParams['financial_type_id'];
       }