aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand/zurich.t
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2014-04-11 10:34:37 +0100
committerStruan Donald <struan@exo.org.uk>2014-04-11 10:34:37 +0100
commite6d0b61e1a406cc79a5a8390fc148b51d2e36e76 (patch)
tree5a1d2f8deb2d822a2e669249a46df0bfd2c77ed7 /t/cobrand/zurich.t
parent03244f1e7d9a03ab704f797a19893c1efdb2b1e6 (diff)
parentdbe9c7ecb157196ed201d94d4159abfb034240ff (diff)
Merge branch 'zerotb'
Diffstat (limited to 't/cobrand/zurich.t')
-rw-r--r--t/cobrand/zurich.t4
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';