diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-06-04 14:39:25 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-06-04 14:39:25 +0100 |
commit | c250740e73ee35dba05200458183eaa4215252c0 (patch) | |
tree | 712602959f2d56df5259085faccde55ce540cbe3 /t/cobrand | |
parent | 4f4943d87fc418c9bc8fada34dd987e3b031fa4a (diff) | |
parent | 7e15d7dfda2e9fb10138aa63c990dd551994cc7a (diff) |
Merge branch 'issues/commercial/1005-bromley-asset-layers'
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/bromley.t | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/t/cobrand/bromley.t b/t/cobrand/bromley.t index e42ab5be2..b3fb3564b 100644 --- a/t/cobrand/bromley.t +++ b/t/cobrand/bromley.t @@ -54,6 +54,7 @@ for my $test ( 'attribute[easting]' => 529025, 'attribute[northing]' => 179716, 'attribute[service_request_id_ext]' => $report->id, + 'attribute[report_title]' => 'Test Test 1 for ' . $body->id, 'jurisdiction_id' => 'FMS', address_id => undef, }, @@ -72,11 +73,20 @@ for my $test ( 'address_id' => '#NOTPINPOINTED#', }, }, + { + desc => 'asset ID', + feature_id => '1234', + expected => { + 'attribute[service_request_id_ext]' => $report->id, + 'attribute[report_title]' => 'Test Test 1 for ' . $body->id . ' | ID: 1234', + }, + }, ) { subtest $test->{desc}, sub { - $report->set_extra_fields(); $report->$_($test->{updates}->{$_}) for keys %{$test->{updates}}; $report->$_(undef) for qw/ whensent send_method_used external_id /; + $report->set_extra_fields({ name => 'feature_id', value => $test->{feature_id} }) + if $test->{feature_id}; $report->update; $body->update( { send_method => 'Open311', endpoint => 'http://bromley.endpoint.example.com', jurisdiction => 'FMS', api_key => 'test', send_comments => 1 } ); my $test_data; |