diff options
author | M Somerville <matthew-github@dracos.co.uk> | 2020-10-08 16:33:47 +0100 |
---|---|---|
committer | M Somerville <matthew-github@dracos.co.uk> | 2020-10-12 13:38:07 +0100 |
commit | a3f5f5cf353074f9a1b97e28366f1f22cc57d3ce (patch) | |
tree | b23efcee3431a0af34240674d95d71e991512234 /t | |
parent | f4a9c33b3deeab5b17721ff42b54cad6a4713317 (diff) |
[Oxfordshire] Construct extra details for defect.
Diffstat (limited to 't')
-rw-r--r-- | t/cobrand/oxfordshire.t | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/t/cobrand/oxfordshire.t b/t/cobrand/oxfordshire.t index 8a1ad1429..a1c842e2d 100644 --- a/t/cobrand/oxfordshire.t +++ b/t/cobrand/oxfordshire.t @@ -188,6 +188,8 @@ FixMyStreet::override_config { $comment->problem->set_extra_metadata(defect_item_category => 'Kerbing'); $comment->problem->set_extra_metadata(defect_item_type => 'Damaged'); $comment->problem->set_extra_metadata(defect_item_detail => '1 kerb unit or 1 linear m'); + $comment->problem->set_extra_metadata(traffic_information => 'Signs and Cones'); + $comment->problem->set_extra_metadata(detailed_information => '100x100'); $comment->problem->update; my $cbr = Test::MockModule->new('FixMyStreet::Cobrand::Oxfordshire'); @@ -215,6 +217,7 @@ FixMyStreet::override_config { is $cgi->param('attribute[usrn]'), 13579, 'USRN sent with update'; is $cgi->param('attribute[raise_defect]'), 1, 'Defect flag sent with update'; is $cgi->param('attribute[defect_item_category]'), 'Kerbing'; + is $cgi->param('attribute[extra_details]'), $user2->email . ' TM1 Damaged 100x100'; # Now set a USRN on the problem (found at submission) $comment->problem->push_extra_fields({ name => 'usrn', value => '12345' }); |