diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-03-21 18:26:39 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-03-23 18:48:56 +0000 |
commit | 6713d6a4cd04a6e91743f687347367f070538e63 (patch) | |
tree | e74ca4f6044c79b30046dc9bb9d015e9f7d93548 /t/app/controller/report_new_mobile.t | |
parent | 8bdf783d5d18dde25b4d2f8309a42c6096cf09d3 (diff) |
Make sure all MapIt tests can run offline.
Diffstat (limited to 't/app/controller/report_new_mobile.t')
-rw-r--r-- | t/app/controller/report_new_mobile.t | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/t/app/controller/report_new_mobile.t b/t/app/controller/report_new_mobile.t index 61cb14a1b..3dfb99b2f 100644 --- a/t/app/controller/report_new_mobile.t +++ b/t/app/controller/report_new_mobile.t @@ -1,5 +1,7 @@ use Test::More; use FixMyStreet::TestMech; +use LWP::Protocol::PSGI; +use t::Mock::MapItZurich; my $mech = FixMyStreet::TestMech->new; @@ -7,10 +9,12 @@ my $mech = FixMyStreet::TestMech->new; FixMyStreet::App->log->disable('info'); END { FixMyStreet::App->log->enable('info'); } +LWP::Protocol::PSGI->register(t::Mock::MapItZurich->to_psgi_app, host => 'mapit.zurich'); + subtest "Check signed up for alert when logged in" => sub { FixMyStreet::override_config { - MAPIT_URL => 'http://global.mapit.mysociety.org', - MAPIT_TYPES => [ 'O06' ], + MAPIT_URL => 'http://mapit.zurich', + MAPIT_TYPES => [ 'O08' ], }, sub { $mech->log_in_ok('user@example.org'); $mech->post_ok( '/report/new/mobile', { |