Skip to content

Commit

Permalink
Update test examples.
Browse files Browse the repository at this point in the history
This is not an exhaustive update. It covers a good chunk of the common changes but a lot of copy & paste means the examples are being overwritten by other tests. I have removed some of that
  • Loading branch information
eileenmcnaughton committed Jan 24, 2017
1 parent d62bb2f commit 5be22f3
Show file tree
Hide file tree
Showing 181 changed files with 2,131 additions and 258 deletions.
4 changes: 3 additions & 1 deletion api/v3/examples/Activity/ContactRefCustomField.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ function activity_create_example() {
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
return array(
'error' => $errorMessage,
'is_error' => 1,
'error_message' => $errorMessage,
'error_code' => $errorCode,
'error_data' => $errorData,
);
Expand Down Expand Up @@ -78,6 +79,7 @@ function activity_create_expectedresult() {
'campaign_id' => '',
'engagement_level' => '',
'weight' => '',
'is_star' => '',
),
),
);
Expand Down
3 changes: 2 additions & 1 deletion api/v3/examples/Activity/ContactRefCustomFieldGet.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ function activity_get_example() {
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
return array(
'error' => $errorMessage,
'is_error' => 1,
'error_message' => $errorMessage,
'error_code' => $errorCode,
'error_data' => $errorData,
);
Expand Down
3 changes: 2 additions & 1 deletion api/v3/examples/Activity/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ function activity_create_example() {
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
return array(
'error' => $errorMessage,
'is_error' => 1,
'error_message' => $errorMessage,
'error_code' => $errorCode,
'error_data' => $errorData,
);
Expand Down
4 changes: 3 additions & 1 deletion api/v3/examples/Activity/DateTimeHigh.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ function activity_get_example() {
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
return array(
'error' => $errorMessage,
'is_error' => 1,
'error_message' => $errorMessage,
'error_code' => $errorCode,
'error_data' => $errorData,
);
Expand Down Expand Up @@ -60,6 +61,7 @@ function activity_get_expectedresult() {
'is_auto' => 0,
'is_current_revision' => '1',
'is_deleted' => 0,
'is_star' => 0,
'source_contact_id' => '1',
),
),
Expand Down
4 changes: 3 additions & 1 deletion api/v3/examples/Activity/DateTimeLow.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ function activity_get_example() {
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
return array(
'error' => $errorMessage,
'is_error' => 1,
'error_message' => $errorMessage,
'error_code' => $errorCode,
'error_data' => $errorData,
);
Expand Down Expand Up @@ -59,6 +60,7 @@ function activity_get_expectedresult() {
'is_auto' => 0,
'is_current_revision' => '1',
'is_deleted' => 0,
'is_star' => 0,
'source_contact_id' => '1',
),
),
Expand Down
3 changes: 2 additions & 1 deletion api/v3/examples/Activity/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ function activity_delete_example() {
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
return array(
'error' => $errorMessage,
'is_error' => 1,
'error_message' => $errorMessage,
'error_code' => $errorCode,
'error_data' => $errorData,
);
Expand Down
3 changes: 2 additions & 1 deletion api/v3/examples/Activity/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ function activity_get_example() {
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
return array(
'error' => $errorMessage,
'is_error' => 1,
'error_message' => $errorMessage,
'error_code' => $errorCode,
'error_data' => $errorData,
);
Expand Down
Loading

0 comments on commit 5be22f3

Please sign in to comment.