unit test fixes 4.7beta4
[civicrm-core.git] / tests / phpunit / api / v3 / CustomValueTest.php
index 05dde076c550e2539f06df03f3e71d2146796c5f..b1fa3cb66d008394a3d938377a8ec854e018a82f 100644 (file)
@@ -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