X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fapi%2Fv3%2FCustomValueTest.php;h=b1fa3cb66d008394a3d938377a8ec854e018a82f;hb=0170d873c6d5339ebec21231af439068ec201b4e;hp=05dde076c550e2539f06df03f3e71d2146796c5f;hpb=2bcf3e5b72a945c90d882750227fa62670b980d6;p=civicrm-core.git diff --git a/tests/phpunit/api/v3/CustomValueTest.php b/tests/phpunit/api/v3/CustomValueTest.php index 05dde076c5..b1fa3cb66d 100644 --- a/tests/phpunit/api/v3/CustomValueTest.php +++ b/tests/phpunit/api/v3/CustomValueTest.php @@ -109,14 +109,15 @@ class api_v3_CustomValueTest extends CiviUnitTestCase { foreach ($customFieldDataType as $dataType => $label) { switch ($dataType) { + case 'Country': + case 'StateProvince': + $this->foreignKeyChecksOff(); case 'String': case 'Link': case 'Int': case 'Float': case 'Money': case 'Date': - case 'Country': - case 'StateProvince': case 'Boolean': //Based on the custom field data-type choose desired SQL operators(to test with) and basic $type