aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-04-13 17:55:12 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-04-13 17:55:12 +0100
commit0e41164eac4503ac62ba6081efd98608a2ed41bc (patch)
tree9cc650c1f95a469028f22abb899324fbb27cb58b /t
parentf436e741671972aff6eb25efed9ac1819c88e192 (diff)
parentc1cfc23c8296e6b94037733371d7aff12585b2bd (diff)
Merge branch 'mapit-proxy-api-key'
Diffstat (limited to 't')
-rw-r--r--t/app/controller/fakemapit.t13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/app/controller/fakemapit.t b/t/app/controller/fakemapit.t
new file mode 100644
index 000000000..c89aac600
--- /dev/null
+++ b/t/app/controller/fakemapit.t
@@ -0,0 +1,13 @@
+use JSON::MaybeXS;
+use FixMyStreet::TestMech;
+
+my $mech = FixMyStreet::TestMech->new;
+
+FixMyStreet::override_config {
+ MAPIT_URL => 'http://mapit.uk/',
+}, sub {
+ $mech->get_ok('/mapit/areas/Birmingham');
+ is_deeply decode_json($mech->content), {2514 => {parent_area => undef, id => 2514, name => "Birmingham City Council", type => "MTD"}};
+};
+
+done_testing;