diff options
author | Struan Donald <struan@exo.org.uk> | 2014-03-12 18:46:50 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2014-04-08 13:21:10 +0100 |
commit | 09aa80425c5618e5a1a2974e46568265260dcabf (patch) | |
tree | 8712a55a0abc72727ddadaf3de4f15b73e16e787 /t/cobrand | |
parent | 35188ef646ebce2233292d9b7511930019235e93 (diff) |
Add some overrides to zurich tests to stop failure
Make sure mapit_id_whitelist set for tests that submit
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/zurich.t | 4 |
1 files changed, 4 insertions, 0 deletions
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'; |