From e4cba171cbe08291fef5b4a7e02241ca050c57c0 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 13 Sep 2020 09:08:10 -0400 Subject: [PATCH] Remove unnecessary debug from tests which messes up array output GetValue and debug can't really be used together. If the output is scalar, then there's no place for the debug info to go. If the output is an array of values, the debug info will be injected into the values, messing up the test. --- Civi/Test/Api3TestTrait.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Civi/Test/Api3TestTrait.php b/Civi/Test/Api3TestTrait.php index 2ce8d75d0e..176564a686 100644 --- a/Civi/Test/Api3TestTrait.php +++ b/Civi/Test/Api3TestTrait.php @@ -260,7 +260,6 @@ trait Api3TestTrait { public function callAPISuccessGetValue($entity, $params, $type = NULL) { $params += [ 'version' => $this->_apiversion, - 'debug' => 1, ]; $result = $this->civicrm_api($entity, 'getvalue', $params); if (is_array($result) && (!empty($result['is_error']) || isset($result['values']))) { -- 2.25.1