diff options
author | Struan Donald <struan@exo.org.uk> | 2017-12-22 12:53:48 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-05-09 12:57:56 +0100 |
commit | 22f0fed0b1ce6e7effac37e025bd55dc6043a838 (patch) | |
tree | a4bd66224c560418863319e9a6144d9b8702d462 /t/sendreport | |
parent | 22815e994510659870987609d244b3f6324bab22 (diff) |
ajax endpoint to return closest address.
/ajax/closest will return ajax with details of the closest address to
the lat/lon passed in from the Bing geocoder.
Tidy up find_closest() to use overloaded string rather than passing
in whether you want a string or not.
Diffstat (limited to 't/sendreport')
-rw-r--r-- | t/sendreport/open311.t | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/t/sendreport/open311.t b/t/sendreport/open311.t index 23096aaac..26764dc19 100644 --- a/t/sendreport/open311.t +++ b/t/sendreport/open311.t @@ -37,6 +37,7 @@ subtest 'testing Open311 behaviour', sub { FixMyStreet::override_config { STAGING_FLAGS => { send_reports => 1 }, ALLOWED_COBRANDS => [ 'fixmystreet' ], + MAPIT_URL => 'http://mapit.uk/', }, sub { $test_data = FixMyStreet::Script::Reports::send(); }; @@ -72,6 +73,7 @@ subtest 'test report with multiple photos only sends one', sub { FixMyStreet::override_config { STAGING_FLAGS => { send_reports => 1 }, ALLOWED_COBRANDS => [ 'fixmystreet' ], + MAPIT_URL => 'http://mapit.uk/', }, sub { $test_data = FixMyStreet::Script::Reports::send(); }; @@ -104,6 +106,7 @@ subtest 'test sending multiple photos', sub { FixMyStreet::override_config { STAGING_FLAGS => { send_reports => 1 }, ALLOWED_COBRANDS => [ 'tester' ], + MAPIT_URL => 'http://mapit.uk/', }, sub { $test_data = FixMyStreet::Script::Reports::send(); }; |