aboutsummaryrefslogtreecommitdiffstats
path: root/t/open311
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-03-06 17:08:19 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-03-08 17:22:19 +0000
commit435d15a06bd845bbcadc603b5a9a7ca88b7b403d (patch)
treed83f45613275b9a8f732c299212cc60e3ff6cf8a /t/open311
parent36487240bae63833e7e82ac673be92eb9c033d4c (diff)
[Open311] Use cobrand hook for extra update params
The test has to now create a new comment object each time as `get_cobrand_logged` is cached on the object.
Diffstat (limited to 't/open311')
-rw-r--r--t/open311/post-service-request-updates.t11
1 files changed, 8 insertions, 3 deletions
diff --git a/t/open311/post-service-request-updates.t b/t/open311/post-service-request-updates.t
index 5c8211bbf..000bf3a2b 100644
--- a/t/open311/post-service-request-updates.t
+++ b/t/open311/post-service-request-updates.t
@@ -34,21 +34,26 @@ subtest 'Check Open311 params' => sub {
is_deeply \%conf, {
%$result,
extended_statuses => 1,
- use_extended_updates => 1,
endpoints => { service_request_updates => 'update.xml', update => 'update.xml' },
+ fixmystreet_body => $bromley,
}, 'Bromley params match';
%conf = $o->open311_params($oxon);
is_deeply \%conf, {
%$result,
- use_customer_reference => 1
+ use_customer_reference => 1,
+ fixmystreet_body => $oxon,
}, 'Oxfordshire params match';
%conf = $o->open311_params($bucks);
is_deeply \%conf, {
%$result,
mark_reopen => 1,
+ fixmystreet_body => $bucks,
}, 'Bucks params match';
%conf = $o->open311_params($lewisham);
- is_deeply \%conf, $result, 'Lewisham params match';
+ is_deeply \%conf, {
+ %$result,
+ fixmystreet_body => $lewisham,
+ }, 'Lewisham params match';
};
};