test tweaks and updated examples
[civicrm-core.git] / api / v3 / examples / Contact / GetFieldsOptions.php
index 032ddc9c023b2a50c5ee7b2542aff0e0c27cb430..5605b345f34d31124e32d6a54346fdf0b042be6b 100644 (file)
@@ -308,6 +308,32 @@ function contact_getfields_expectedresult(){
           'dataPattern' => '/^\w+(\s\w+)?+$/',
           'export' => true,
         ),
+      'prefix_id' => array(
+          'name' => 'prefix_id',
+          'type' => 1,
+          'title' => 'Individual Prefix',
+          'import' => true,
+          'where' => 'civicrm_contact.prefix_id',
+          'headerPattern' => '/^(prefix|title)/i',
+          'dataPattern' => '/^(mr|ms|mrs|sir|dr)\.?$/i',
+          'export' => true,
+          'pseudoconstant' => array(
+              'optionGroupName' => 'individual_prefix',
+            ),
+        ),
+      'suffix_id' => array(
+          'name' => 'suffix_id',
+          'type' => 1,
+          'title' => 'Individual Suffix',
+          'import' => true,
+          'where' => 'civicrm_contact.suffix_id',
+          'headerPattern' => '/^suffix$/i',
+          'dataPattern' => '/^(sr|jr)\.?|i{2,}$/',
+          'export' => true,
+          'pseudoconstant' => array(
+              'optionGroupName' => 'individual_suffix',
+            ),
+        ),
       'email_greeting_id' => array(
           'name' => 'email_greeting_id',
           'type' => 1,
@@ -503,34 +529,6 @@ function contact_getfields_expectedresult(){
           'export' => true,
           'uniqueName' => 'contact_source',
         ),
-      'prefix_id' => array(
-          'name' => 'prefix_id',
-          'type' => 1,
-          'title' => 'Individual Prefix',
-          'import' => true,
-          'where' => 'civicrm_contact.prefix_id',
-          'headerPattern' => '/^(prefix|title)/i',
-          'dataPattern' => '/^(mr|ms|mrs|sir|dr)\.?$/i',
-          'export' => true,
-          'pseudoconstant' => array(
-              'optionGroupName' => 'individual_prefix',
-            ),
-          'uniqueName' => 'individual_prefix_id',
-        ),
-      'suffix_id' => array(
-          'name' => 'suffix_id',
-          'type' => 1,
-          'title' => 'Individual Suffix',
-          'import' => true,
-          'where' => 'civicrm_contact.suffix_id',
-          'headerPattern' => '/^suffix$/i',
-          'dataPattern' => '/^(sr|jr)\.?|i{2,}$/',
-          'export' => true,
-          'pseudoconstant' => array(
-              'optionGroupName' => 'individual_suffix',
-            ),
-          'uniqueName' => 'individual_suffix_id',
-        ),
       'employer_id' => array(
           'name' => 'employer_id',
           'type' => 1,