aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand/fixamingata.t
diff options
context:
space:
mode:
Diffstat (limited to 't/cobrand/fixamingata.t')
-rw-r--r--t/cobrand/fixamingata.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/cobrand/fixamingata.t b/t/cobrand/fixamingata.t
index dacf4325a..d6a1c2b34 100644
--- a/t/cobrand/fixamingata.t
+++ b/t/cobrand/fixamingata.t
@@ -1,6 +1,7 @@
use strict;
use warnings;
use Test::More;
+use Test::MockModule;
BEGIN {
use FixMyStreet;
@@ -12,6 +13,10 @@ use mySociety::Locale;
use FixMyStreet::TestMech;
my $mech = FixMyStreet::TestMech->new;
+# Closest road reverse geocode mock
+my $resolver = Test::MockModule->new('LWP::Simple');
+$resolver->mock('get', sub($) { "<result></result>" });
+
# Front page test
ok $mech->host("www.fixamingata.se"), "change host to FixaMinGata";