diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-10-11 09:27:21 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-10-11 09:27:21 +0100 |
commit | 2404b1954614d9cd93c44e42a13449b7a7efaae1 (patch) | |
tree | e98ff3989d37c120a7f1294d2bf914dc5e89cae3 /t/Mock | |
parent | dfe953289cc7e3c49ee547110b953b48c2948aab (diff) | |
parent | 5934b383754a2d298100a674a1ccefc2cb9e50af (diff) |
Merge branch 'bit-of-yaml-tidying'
Diffstat (limited to 't/Mock')
-rw-r--r-- | t/Mock/Nominatim.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/Mock/Nominatim.pm b/t/Mock/Nominatim.pm index 5c8c549d1..5edbc9b30 100644 --- a/t/Mock/Nominatim.pm +++ b/t/Mock/Nominatim.pm @@ -13,6 +13,11 @@ has json => ( sub dispatch_request { my $self = shift; + sub (GET + /reverse + ?*) { + my ($self) = @_; + return [ 200, [ 'Content-Type' => 'text/xml' ], [ '<result></result>' ] ]; + }, + sub (GET + /search + ?q=) { my ($self, $q) = @_; my $response = $self->query($q); |