fixed api test
authorPradeep Nayak <pradpnayak@gmail.com>
Mon, 23 Jul 2018 14:27:00 +0000 (15:27 +0100)
committerPradeep Nayak <pradpnayak@gmail.com>
Mon, 23 Jul 2018 14:27:00 +0000 (15:27 +0100)
tests/phpunit/api/v3/FinancialTypeTest.php

index 4e87bfdaa88619634a74c1285556efc202a2a275..7e223d39621eeebcdac9ac8bb027e5ae6fd2c86f 100644 (file)
@@ -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',