aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2020-03-27 10:59:15 +0000
committerStruan Donald <struan@exo.org.uk>2020-03-31 09:58:58 +0100
commit6e07f9477d0218151f80a181c7832fe73c6accac (patch)
tree3237052afd757cc01801b765fb4c40919e62c47a /t
parent2187335bcd3fff4e0199e25d381d9f9d865e85c9 (diff)
[Highways England] Error if road name searched.
Diffstat (limited to 't')
-rw-r--r--t/cobrand/highwaysengland.t17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/cobrand/highwaysengland.t b/t/cobrand/highwaysengland.t
new file mode 100644
index 000000000..3c7632563
--- /dev/null
+++ b/t/cobrand/highwaysengland.t
@@ -0,0 +1,17 @@
+use FixMyStreet::TestMech;
+use FixMyStreet::App;
+
+# disable info logs for this test run
+FixMyStreet::App->log->disable('info');
+END { FixMyStreet::App->log->enable('info'); }
+
+
+my $he = FixMyStreet::Cobrand::HighwaysEngland->new();
+
+my $r = $he->geocode_postcode('M1');
+ok $r->{error}, "searching for road only generates error";
+
+$r = $he->geocode_postcode('m1');
+ok $r->{error}, "searching for lowecase road only generates error";
+
+done_testing();