aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand/bexley.t
diff options
context:
space:
mode:
Diffstat (limited to 't/cobrand/bexley.t')
-rw-r--r--t/cobrand/bexley.t6
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/;
};
};