diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-02-20 14:08:33 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-02-25 12:19:50 +0000 |
commit | 0c8aae1ab17617f46f400bab81bb7a3b144b4a1e (patch) | |
tree | 61395979a0dad8a235a7b0c8bf505bc55acd5aef /t | |
parent | 66f2160d3718f049a3772f2f69f623971295f547 (diff) |
Internal JSON endpoint to get reports near a point
Unused right now, but will be soon, for the duplicate suggestion UI.
Diffstat (limited to 't')
-rw-r--r-- | t/app/controller/around.t | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/app/controller/around.t b/t/app/controller/around.t index ed29d438c..3f0fff666 100644 --- a/t/app/controller/around.t +++ b/t/app/controller/around.t @@ -359,4 +359,10 @@ subtest 'check map zoom level customisation' => sub { }; }; +subtest 'check nearby lookup' => sub { + my $p = FixMyStreet::DB->resultset("Problem")->search({ external_body => "Pothole-confirmed" })->first; + $mech->get_ok('/around/nearby?latitude=51.754926&longitude=-1.256179&filter_category=Pothole'); + $mech->content_contains('["51.754926","-1.256179","yellow",' . $p->id . ',"Around page Test 1 for ' . $body->id . '","small",false]'); +}; + done_testing(); |