diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-08 15:01:08 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-09 11:55:37 +0100 |
commit | 67190a155ece50b95941fcfff453fe140ab1bb75 (patch) | |
tree | 152c6c4d047b2017fff396eedd9a080f2e7cb528 /t | |
parent | 7a0e456e59041b90b527934777f449518ea54065 (diff) |
[Open311] Move send-comments cobrand specific code
Diffstat (limited to 't')
-rw-r--r-- | t/open311/post-service-request-updates.t | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/open311/post-service-request-updates.t b/t/open311/post-service-request-updates.t index 95013b951..5c8211bbf 100644 --- a/t/open311/post-service-request-updates.t +++ b/t/open311/post-service-request-updates.t @@ -21,17 +21,21 @@ my $bucks = $mech->create_body_ok(2217, 'Buckinghamshire', $params); my $lewisham = $mech->create_body_ok(2492, 'Lewisham', $params); subtest 'Check Open311 params' => sub { + FixMyStreet::override_config { + ALLOWED_COBRANDS => ['fixmystreet', 'bromley', 'buckinghamshire', 'lewisham', 'oxfordshire'], + }, sub { my $result = { endpoint => 'endpoint', jurisdiction => 'home', api_key => 'KEY', - use_extended_updates => 0, + extended_statuses => undef, }; my %conf = $o->open311_params($bromley); is_deeply \%conf, { %$result, extended_statuses => 1, use_extended_updates => 1, + endpoints => { service_request_updates => 'update.xml', update => 'update.xml' }, }, 'Bromley params match'; %conf = $o->open311_params($oxon); is_deeply \%conf, { @@ -45,6 +49,7 @@ subtest 'Check Open311 params' => sub { }, 'Bucks params match'; %conf = $o->open311_params($lewisham); is_deeply \%conf, $result, 'Lewisham params match'; + }; }; my $other_user = $mech->create_user_ok('test2@example.com', title => 'MRS'); |