From b04ee361ba4732a9d307ff260055c742f84d81ee Mon Sep 17 00:00:00 2001 From: Camilo Rodriguez Date: Mon, 25 Sep 2017 16:41:14 +0000 Subject: [PATCH] CRM-12167: Fix Geocode Test --- 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 cc871efd8a..c10b887b88 100644 --- a/tests/phpunit/CRM/Utils/GeocodeTest.php +++ b/tests/phpunit/CRM/Utils/GeocodeTest.php @@ -43,7 +43,7 @@ class CRM_Utils_GeocodeTest extends CiviUnitTestCase { $contact_values = array_pop($result['values']); $address_values = array_pop($contact_values['api.Address.create']['values']); // We should get a geo code setting. - $this->assertApproxEquals('38.89', $address_values['geo_code_1'], 1); + $this->assertApproxEquals('38.89', CRM_Utils_Array::value('geo_code_1', $address_values), 1); // Set geocodeMethod to empty. $config = CRM_Core_Config::singleton(); -- 2.25.1