diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-04-02 13:22:32 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-28 15:36:25 +0100 |
commit | d1b88da661e37cc55a6ce23251bab6cd0cff6338 (patch) | |
tree | 94860d4692b60d0346b42378440c4a1695d60959 /t/cobrand/bexley.t | |
parent | 324b881a8db33250c3fdac3752429b59929b83fa (diff) |
[Bexley] Send email for burnt vehicles/dog fouling
Diffstat (limited to 't/cobrand/bexley.t')
-rw-r--r-- | t/cobrand/bexley.t | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/cobrand/bexley.t b/t/cobrand/bexley.t index 10255dbea..e6f400e3d 100644 --- a/t/cobrand/bexley.t +++ b/t/cobrand/bexley.t @@ -44,6 +44,8 @@ FixMyStreet::override_config { category => 'Abandoned and untaxed vehicles', cobrand => 'bexley', latitude => 51.408484, longitude => 0.074653, }); + $report->set_extra_fields({ 'name' => 'burnt', description => 'Was it burnt?', 'value' => 'Yes' }); + $report->update; subtest 'Server-side NSGRef included' => sub { my $test_data = FixMyStreet::Script::Reports::send(); @@ -51,6 +53,10 @@ FixMyStreet::override_config { my $c = CGI::Simple->new($req->content); is $c->param('service_code'), 'ABAN'; is $c->param('attribute[NSGRef]'), 'Road ID'; + + my $email = $mech->get_email; + like $email->header('To'), qr/"Bexley P1 email".*bexley/; + like $mech->get_text_body_from_email($email), qr/NSG Ref: Road ID/; }; }; |