Skip to content

Commit

Permalink
Merge pull request civicrm#11986 from eileenmcnaughton/test
Browse files Browse the repository at this point in the history
Namespace exception in test
  • Loading branch information
colemanw authored Apr 19, 2018
2 parents 8811fef + 76bff15 commit 9b6f5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Civi/Test/Api3TestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function callAPISuccessGetSingle($entity, $params, $checkAgainst = NULL)
);
$result = $this->civicrm_api($entity, 'getsingle', $params);
if (!is_array($result) || !empty($result['is_error']) || isset($result['values'])) {
throw new Exception('Invalid getsingle result' . print_r($result, TRUE));
throw new \Exception('Invalid getsingle result' . print_r($result, TRUE));
}
if ($checkAgainst) {
// @todo - have gone with the fn that unsets id? should we check id?
Expand Down

0 comments on commit 9b6f5e6

Please sign in to comment.