Commit 665a8b8e authored by lyricnz's avatar lyricnz
Browse files

Update tests for new result from webservice

parent f93c9894
......@@ -116,7 +116,7 @@ class GeoNamesAllTestCase extends DrupalWebTestCase {
$this->assertEqual($results->total_results_count, 1, 'Found 1 result from "extendedFindNearby" A');
$result = $results->results[0];
$this->assertEqual($result['street'], 'Roble Ave', t('Found "Roble Ave" from "extendedFindNearby" A'));
$this->assertEqual($result['streetnumber'], '671', t('Found "671" from "extendedFindNearby" A'));
$this->assertEqual($result['streetnumber'], '651', t('Found "651" from "extendedFindNearby" A'));
// Test the "extendedFindNearby" service : other countries
$query = array('lat' => 47.3, 'lng' => 9);
......@@ -155,7 +155,7 @@ class GeoNamesAllTestCase extends DrupalWebTestCase {
$this->assertEqual($results->total_results_count, 1, 'Found 1 result from "findNearestAddress"');
$result = $results->results[0];
$this->assertEqual($result['street'], 'Roble Ave', t('Found "Roble Ave" from "findNearestAddress"'));
$this->assertEqual($result['streetnumber'], '671', t('Found "671" from "findNearestAddress"'));
$this->assertEqual($result['streetnumber'], '651', t('Found "651" from "findNearestAddress"'));
// Test the "findNearestIntersection" service
$query = array('lat' => 37.451, 'lng' => -122.18);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment