Change geocoder message check.
authoreileen <emcnaughton@wikimedia.org>
Mon, 12 Feb 2018 19:40:08 +0000 (08:40 +1300)
committereileen <emcnaughton@wikimedia.org>
Mon, 12 Feb 2018 19:40:35 +0000 (08:40 +1300)
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

index b5361b0eb6360bf60cf7ebad0a99af82b7371906..4c6bb1bb12a1d2c7df870046f1dfc201472d31f3 100644 (file)
@@ -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 {