From bbfa037b55a41161244b3fcf07b0811e67ade4ad Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Mon, 23 Jul 2018 15:27:00 +0100 Subject: [PATCH] fixed api test --- tests/phpunit/api/v3/FinancialTypeTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/phpunit/api/v3/FinancialTypeTest.php b/tests/phpunit/api/v3/FinancialTypeTest.php index 4e87bfdaa8..7e223d3962 100644 --- a/tests/phpunit/api/v3/FinancialTypeTest.php +++ b/tests/phpunit/api/v3/FinancialTypeTest.php @@ -35,6 +35,13 @@ class api_v3_FinancialTypeTest extends CiviUnitTestCase { * Test Create, Read, Update Financial type with custom field. */ public function testCreateUpdateFinancialTypeCustomField() { + $this->callAPISuccess('OptionValue', 'create', [ + 'label' => ts('Financial Type'), + 'name' => 'civicrm_financial_type', + 'value' => 'FinancialType', + 'option_group_id' => 'cg_extend_objects', + 'is_active' => 1, + ]); // create custom group and custom field $customFieldIds = $this->CustomGroupMultipleCreateWithFields([ 'name' => 'Test_Group_Financial_type', -- 2.25.1