From 09aa80425c5618e5a1a2974e46568265260dcabf Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Wed, 12 Mar 2014 18:46:50 +0000 Subject: Add some overrides to zurich tests to stop failure Make sure mapit_id_whitelist set for tests that submit --- t/cobrand/zurich.t | 4 ++++ 1 file changed, 4 insertions(+) (limited to 't/cobrand') diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t index 73007ff59..e97891b91 100644 --- a/t/cobrand/zurich.t +++ b/t/cobrand/zurich.t @@ -565,6 +565,7 @@ subtest "phone number is mandatory" => sub { MAPIT_TYPES => [ 'O08' ], MAPIT_URL => 'http://global.mapit.mysociety.org/', ALLOWED_COBRANDS => [ 'zurich' ], + MAPIT_ID_WHITELIST => [ 423017 ], }, sub { $user = $mech->log_in_ok( 'dm1@example.org' ); $mech->get_ok( '/report/new?lat=47.381817&lon=8.529156' ); @@ -578,6 +579,8 @@ subtest "phone number is not mandatory for reports from mobile apps" => sub { FixMyStreet::override_config { MAPIT_TYPES => [ 'O08' ], MAPIT_URL => 'http://global.mapit.mysociety.org/', + ALLOWED_COBRANDS => [ 'zurich' ], + MAPIT_ID_WHITELIST => [ 423017 ], }, sub { $mech->post_ok( '/report/new/mobile?lat=47.381817&lon=8.529156' , { service => 'iPhone', @@ -587,6 +590,7 @@ subtest "phone number is not mandatory for reports from mobile apps" => sub { email => 'user@example.org', pc => '', name => '', + category => 'bad category', }); my $res = $mech->response; ok $res->header('Content-Type') =~ m{^application/json\b}, 'response should be json'; -- cgit v1.2.3