Add tests for Ensure OptionGroup exists fn & fix optionValueExists to accept ID
authoreileen <emcnaughton@wikimedia.org>
Tue, 17 May 2016 01:05:23 +0000 (13:05 +1200)
committerTim Otten <totten@civicrm.org>
Thu, 19 May 2016 22:50:31 +0000 (15:50 -0700)
commitbf87703e8feafd825f623278f25844bddbcb6e05
treecc1e8135582e0c6acf1d91001c6977444e268a1b
parentd020c61dfaafffef27e51a279d81c6bda1c81e5a
Add tests for Ensure OptionGroup exists fn & fix optionValueExists to accept ID

The option_group_id field accepts name or id so use that.
CRM/Core/BAO/OptionValue.php
tests/phpunit/api/v3/OptionGroupTest.php