Update Test generated examples
[civicrm-core.git] / api / v3 / examples / Country / Create.php
index eb9feefeaec8989f2f89dda16da17df9c26c6688..988b9bcfc9158c3b8a5ec4f29d5e9242623043d8 100644 (file)
@@ -21,7 +21,8 @@ function country_create_example() {
     $errorCode = $e->getErrorCode();
     $errorData = $e->getExtraParams();
     return array(
-      'error' => $errorMessage,
+      'is_error' => 1,
+      'error_message' => $errorMessage,
       'error_code' => $errorCode,
       'error_data' => $errorData,
     );
@@ -42,10 +43,10 @@ function country_create_expectedresult() {
     'is_error' => 0,
     'version' => 3,
     'count' => 1,
-    'id' => 1252,
+    'id' => 1254,
     'values' => array(
-      '1252' => array(
-        'id' => '1252',
+      '1254' => array(
+        'id' => '1254',
         'name' => 'Made Up Land',
         'iso_code' => 'ZZ',
         'country_code' => '',