From b679c5b150d4adfeb5fcc9073748511424028f49 Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 13 Feb 2018 08:40:08 +1300 Subject: [PATCH] Change geocoder message check. We should be using a dummy geocoder - but since we are not let's at least check for the correct message --- tests/phpunit/CRM/Utils/GeocodeTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Utils/GeocodeTest.php b/tests/phpunit/CRM/Utils/GeocodeTest.php index b5361b0eb6..4c6bb1bb12 100644 --- a/tests/phpunit/CRM/Utils/GeocodeTest.php +++ b/tests/phpunit/CRM/Utils/GeocodeTest.php @@ -62,7 +62,7 @@ class CRM_Utils_GeocodeTest extends CiviUnitTestCase { $result_geocode = civicrm_api3('Job', 'geocode', $params_geocode); } catch (CiviCRM_API3_Exception $e) { - if ($e->getMessage() == 'A fatal error was triggered: Aborting batch geocoding. Hit the over query limit on geocoder.') { + if ($e->getMessage() == 'Aborting batch geocoding. Hit the over query limit on geocoder.') { $this->markTestIncomplete('Job.geocode error_message: A fatal error was triggered: Aborting batch geocoding. Hit the over query limit on geocoder.'); } else { -- 2.25.1