Commit f93c9894 authored by lyricnz's avatar lyricnz
Browse files

Add support for maxrows argument to 'children' service

parent 7e83f696
......@@ -97,6 +97,7 @@ function geonames_config($a = NULL, $b = NULL) {
// our style // geonames style
'geonameid' => 'geonameId',
'style' => 'style',
'maxrows' => 'maxRows',
'lang' => 'lang',
),
'required_parameters' => array(
......
......@@ -67,7 +67,7 @@ class GeoNamesAllTestCase extends DrupalWebTestCase {
$this->assertEqual($result['astergdem'], "192", t('Found expected result for fixed coordinates for astergdem service'));
// Test the "children" service
$query = array('geonameid' => 3175395);
$query = array('geonameid' => 3175395, 'maxrows' => 10);
$results = $this->geonames_query('children', $query);
$this->assertTrue($results->total_results_count > 5, t('At least 5 regions found for Italy'));
$all_ok = TRUE;
......
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