From deb562a8e7e71b4ef58616a16874527c54e3f815 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 4 Jun 2014 00:59:41 +1200 Subject: [PATCH] fix to syntax conformance test handling of contribution_type_id --- tests/phpunit/api/v3/SyntaxConformanceTest.php | 4 ++++ 1 file changed, 4 insertions(+) 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( -- 2.25.1