From: Eileen McNaughton Date: Tue, 3 Jun 2014 12:59:41 +0000 (+1200) Subject: fix to syntax conformance test handling of contribution_type_id X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=deb562a8e7e71b4ef58616a16874527c54e3f815;p=civicrm-core.git fix to syntax conformance test handling of contribution_type_id --- diff --git a/tests/phpunit/api/v3/SyntaxConformanceTest.php b/tests/phpunit/api/v3/SyntaxConformanceTest.php index 3793e52431..b065ddc659 100644 --- a/tests/phpunit/api/v3/SyntaxConformanceTest.php +++ b/tests/phpunit/api/v3/SyntaxConformanceTest.php @@ -975,6 +975,10 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { 'id' => $entity['id'], $field => isset($entity[$field]) ? $entity[$field] : NULL, ); + if(isset($updateParams['financial_type_id'])) { + //api has special handling on these 2 fields for backward compatibility reasons + $entity['contribution_type_id'] = $updateParams['financial_type_id']; + } $update = $this->callAPISuccess($entityName, 'create', $updateParams); $checkParams = array(