Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM-20023 Add test showing passing in just state_province_id and coun… #9958

Merged
merged 3 commits into from
Mar 9, 2017

Conversation

seamuslee001
Copy link
Contributor

…try only geoloates based on country not state as well

$params = array('state_province_id' => 1022, 'country' => 'U.S.A');
$formatted = CRM_Utils_Geocode_Google::format($params);
$this->assertTrue($formatted);
$this->assertEquals('46.729553', $params['geo_code_1']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this should be using assertApproxEquals()? It feels weird to assign such a precise coordinate to a landmass as large as the United States.

@totten totten merged commit 9a9258a into civicrm:master Mar 9, 2017
monishdeb pushed a commit to monishdeb/civicrm-core that referenced this pull request May 2, 2017
CRM-20023 Add test showing passing in just state_province_id and coun…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants