diff --git a/Civi/Test/Api3TestTrait.php b/Civi/Test/Api3TestTrait.php index 767c7233907f..46880df32bf5 100644 --- a/Civi/Test/Api3TestTrait.php +++ b/Civi/Test/Api3TestTrait.php @@ -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?