X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fphpunit%2FCRM%2FCore%2FBAO%2FCustomFieldTest.php;h=42a74c2026938496245f2f8b5eadcda19064e209;hb=ab1d98dd07ec04f49b67a93e20ec9a6f8f347d9a;hp=103a5c7bdf72c350f733f7725402fb078d1faf4c;hpb=e0c38aa518dd56093b72c1d4d911076304a4bcb2;p=civicrm-core.git diff --git a/tests/phpunit/CRM/Core/BAO/CustomFieldTest.php b/tests/phpunit/CRM/Core/BAO/CustomFieldTest.php index 103a5c7bdf..42a74c2026 100644 --- a/tests/phpunit/CRM/Core/BAO/CustomFieldTest.php +++ b/tests/phpunit/CRM/Core/BAO/CustomFieldTest.php @@ -187,6 +187,20 @@ class CRM_Core_BAO_CustomFieldTest extends CiviUnitTestCase { '' => '', ], ], + [ + 'data_type' => 'Money', + 'html_type' => 'Radio', + 'option_values' => [ + '10' => '10 USD', + '10.1' => '10.1 USD', + '10.99' => '10.99 USD', + ], + 'tests' => [ + '10 USD' => '10.00', + '10.1 USD' => '10.10', + '10.99 USD' => '10.99', + ], + ], ]; foreach ($fieldsToCreate as $num => $field) { $params = $field + ['label' => 'test field ' . $num, 'custom_group_id' => $customGroup['id']];