From: Coleman Watts Date: Wed, 5 Aug 2015 01:42:25 +0000 (-0400) Subject: CRM-16705 - Fix syntaxConformanceTest to work with oddball pseudoconstant keyColumn X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=34e9aa63295792237f752c73a797e53869721340;p=civicrm-core.git CRM-16705 - Fix syntaxConformanceTest to work with oddball pseudoconstant keyColumn --- diff --git a/tests/phpunit/api/v3/SyntaxConformanceTest.php b/tests/phpunit/api/v3/SyntaxConformanceTest.php index 2987a957f6..8769a482c7 100644 --- a/tests/phpunit/api/v3/SyntaxConformanceTest.php +++ b/tests/phpunit/api/v3/SyntaxConformanceTest.php @@ -1222,7 +1222,8 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { 'sequential' => 1, )); $optionValue = $optionValue['values']; - $options[$optionValue[0]['value']] = 'new option value'; + $keyColumn = CRM_Utils_Array::value('keyColumn', $specs['pseudoconstant'], 'value'); + $options[$optionValue[0][$keyColumn]] = 'new option value'; } } $entity[$field] = array_rand($options);