aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/report_new_mobile.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-03-28 10:12:56 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-03-28 10:12:56 +0100
commitb76cfb3889140f1c771c1f98254f724aad3d4297 (patch)
treebb7beada7a603119ea2897f54a6af96814d850e1 /t/app/controller/report_new_mobile.t
parent3f21a9742d89c3e4fda47a0be6ec2a17f802c99a (diff)
parenta8ceae6c99b00aefcba301b2f41033d84701f56a (diff)
Merge branch 'offline-tests'
Diffstat (limited to 't/app/controller/report_new_mobile.t')
-rw-r--r--t/app/controller/report_new_mobile.t8
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', {