Skip to content

Commit

Permalink
Minor clean up in financial type test
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Jan 11, 2025
1 parent a5160c9 commit 8e2baa6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/phpunit/api/v3/FinancialTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,20 @@
*/
class api_v3_FinancialTypeTest extends CiviUnitTestCase {

public function tearDown(): void {
$this->quickCleanUpFinancialEntities();
parent::tearDown();
}

/**
* Test Create, Read, Update Financial type with custom field.
*
* @throws \CRM_Core_Exception
*/
public function testCreateUpdateFinancialTypeCustomField(): void {
$this->callAPISuccess('OptionValue', 'create', [
'label' => ts('Financial Type'),
$this->createTestEntity('OptionValue', [
'label' => 'Financial Type',
'name' => 'civicrm_financial_type',
'value' => 'FinancialType',
'option_group_id' => 'cg_extend_objects',
'option_group_id:name' => 'cg_extend_objects',
'is_active' => 1,
]);
// create custom group and custom field
Expand Down

0 comments on commit 8e2baa6

Please sign in to comment.