more coverage tests for Geocode.php

This commit is contained in:
Sarah Hoffmann 2017-10-02 23:09:45 +02:00
parent 2deac34648
commit eacaf3489e
2 changed files with 25 additions and 0 deletions

View File

@ -18,3 +18,10 @@ Feature: Searches with postcodes
| country_code |
| li |
Scenario: Postcode search with country code restriction
When sending json search query "9490" with address
| countrycodes |
| li |
Then result addresses contain
| country_code |
| li |

View File

@ -96,6 +96,24 @@ Feature: Search queries
| class | type |
| man_made | mast |
Scenario: Arbitrary key/value search near a road
When sending json search query "[leisure=table_soccer_table] immenbusch"
Then results contain
| class | type |
| leisure | table_soccer_table |
Scenario: Ignore other country codes in structured search with country
When sending json search query ""
| city | country |
| li | de |
Then exactly 0 results are returned
Scenario: Ignore country searches when query is restricted to countries
When sending json search query "de"
| countrycodes |
| li |
Then exactly 0 results are returned
# https://trac.openstreetmap.org/ticket/5094
Scenario: housenumbers are ordered by complete match first
When sending json search query "6395 geminis, montevideo" with address