aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/oxfordshire.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/cobrand/oxfordshire.t b/t/cobrand/oxfordshire.t
index b5e51e808..8a1ad1429 100644
--- a/t/cobrand/oxfordshire.t
+++ b/t/cobrand/oxfordshire.t
@@ -184,6 +184,10 @@ FixMyStreet::override_config {
$comment->set_extra_metadata(defect_raised => 1);
$comment->update;
$comment->problem->external_id('hey');
+ $comment->problem->set_extra_metadata(defect_location_description => 'Location');
+ $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->update;
my $cbr = Test::MockModule->new('FixMyStreet::Cobrand::Oxfordshire');
@@ -210,6 +214,7 @@ FixMyStreet::override_config {
my $cgi = CGI::Simple->new($o->test_req_used->content);
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';
# Now set a USRN on the problem (found at submission)
$comment->problem->push_extra_fields({ name => 'usrn', value => '12345' });