diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-03-11 16:48:32 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-03-12 11:56:07 +0000 |
commit | 25792b5e3bdebd3d1d13c370c4d6da0db3d38cef (patch) | |
tree | 0f3538580b6742de50ec162d67854df90e5d3e28 /t | |
parent | c97eb13c2920103416c19ec526304fd07d44c386 (diff) |
[Open311] Proper bodies check for sending updates.
Otherwise running on a site where one body ID is a substring
of another, comments can get processed for the wrong body.
Diffstat (limited to 't')
-rw-r--r-- | t/open311/post-service-request-updates.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/open311/post-service-request-updates.t b/t/open311/post-service-request-updates.t index 5c8211bbf..901181501 100644 --- a/t/open311/post-service-request-updates.t +++ b/t/open311/post-service-request-updates.t @@ -15,8 +15,8 @@ my $params = { endpoint => 'endpoint', jurisdiction => 'home', }; -my $bromley = $mech->create_body_ok(2482, 'Bromley', { %$params, send_extended_statuses => 1 }); -my $oxon = $mech->create_body_ok(2237, 'Oxfordshire', $params); +my $bromley = $mech->create_body_ok(2482, 'Bromley', { %$params, send_extended_statuses => 1, id => 5 }); +my $oxon = $mech->create_body_ok(2237, 'Oxfordshire', { %$params, id => 55 }); my $bucks = $mech->create_body_ok(2217, 'Buckinghamshire', $params); my $lewisham = $mech->create_body_ok(2492, 'Lewisham', $params); |