Namespace exception in test
authoreileen <emcnaughton@wikimedia.org>
Tue, 17 Apr 2018 08:08:57 +0000 (20:08 +1200)
committereileen <emcnaughton@wikimedia.org>
Tue, 17 Apr 2018 08:08:57 +0000 (20:08 +1200)
Civi/Test/Api3TestTrait.php

index 767c7233907f1f559fc0199d31e04753e3596f2d..46880df32bf573f261aa8d116b5ba1d7145034a9 100644 (file)
@@ -202,7 +202,7 @@ trait Api3TestTrait {
     );
     $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?