aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-12-02 17:48:59 +0000
committerDave Arter <davea@mysociety.org>2019-12-09 12:50:07 +0000
commitb8eca37a3236a22eb969b74bd8d5806d70c5ffcb (patch)
tree2917a2725add5680ad10b2929aad81b569b8804a /t/cobrand
parent3121c6eb505b4423aa6165fb5749297803fb7ffa (diff)
[TfL] Get do_not_reply_email from cobrand feature config
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/tfl.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/cobrand/tfl.t b/t/cobrand/tfl.t
index c65239a78..86ab5a6f3 100644
--- a/t/cobrand/tfl.t
+++ b/t/cobrand/tfl.t
@@ -172,6 +172,12 @@ FixMyStreet::override_config {
anonymous_account => {
tfl => 'anonymous'
},
+ contact_name => {
+ tfl => 'TfL Street Care',
+ },
+ do_not_reply_email => {
+ tfl => 'fms-tfl-DO-NOT-REPLY@example.com',
+ },
},
}, sub {
@@ -312,6 +318,7 @@ subtest "extra information included in email" => sub {
like $mech->get_text_body_from_email($email[0]), qr/Report reference: FMS$id/, "FMS-prefixed ID in TfL email";
like $mech->get_text_body_from_email($email[0]), qr/Stop number: 12345678/, "Bus stop code in TfL email";
is $email[1]->header('To'), $report->user->email;
+ is $email[1]->header('From'), '"TfL Street Care" <fms-tfl-DO-NOT-REPLY@example.com>';
like $mech->get_text_body_from_email($email[1]), qr/report's reference number is FMS$id/, "FMS-prefixed ID in reporter email";
$mech->clear_emails_ok;
@@ -638,6 +645,9 @@ FixMyStreet::override_config {
anonymous_account => {
tfl => 'anonymous'
},
+ do_not_reply_email => {
+ tfl => 'fms-tfl-DO-NOT-REPLY@example.com',
+ },
},
}, sub {