From 76bff1522d753b3d428d3a65c3fd3df4c1872ddf Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 17 Apr 2018 20:08:57 +1200 Subject: [PATCH] Namespace exception in test --- Civi/Test/Api3TestTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?