aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/Cobrand/TfL.pm2
-rw-r--r--t/cobrand/tfl.t2
-rw-r--r--templates/email/tfl/confirm_report_sent.html1
-rw-r--r--templates/email/tfl/confirm_report_sent.txt1
4 files changed, 6 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/TfL.pm b/perllib/FixMyStreet/Cobrand/TfL.pm
index 78711d345..47fe5a1cf 100644
--- a/perllib/FixMyStreet/Cobrand/TfL.pm
+++ b/perllib/FixMyStreet/Cobrand/TfL.pm
@@ -75,4 +75,6 @@ sub lookup_by_ref {
return 0;
}
+sub report_sent_confirmation_email { 'id' }
+
1;
diff --git a/t/cobrand/tfl.t b/t/cobrand/tfl.t
index 3e1e851bf..769aeec9b 100644
--- a/t/cobrand/tfl.t
+++ b/t/cobrand/tfl.t
@@ -80,6 +80,8 @@ subtest "reference number included in email" => sub {
my @email = $mech->get_email;
is $email[0]->header('To'), 'TfL <busstops@example.com>';
like $mech->get_text_body_from_email($email[0]), qr/Report reference: FMS$id/, "FMS-prefixed ID in TfL email";
+ is $email[1]->header('To'), $report->user->email;
+ like $mech->get_text_body_from_email($email[1]), qr/report's reference number is FMS$id/, "FMS-prefixed ID in reporter email";
$mech->get_ok( '/report/' . $report->id );
$mech->content_contains('FMS' . $report->id) or diag $mech->content;
diff --git a/templates/email/tfl/confirm_report_sent.html b/templates/email/tfl/confirm_report_sent.html
new file mode 100644
index 000000000..b698520dd
--- /dev/null
+++ b/templates/email/tfl/confirm_report_sent.html
@@ -0,0 +1 @@
+[% INCLUDE 'other-reported.html' %]
diff --git a/templates/email/tfl/confirm_report_sent.txt b/templates/email/tfl/confirm_report_sent.txt
new file mode 100644
index 000000000..3d566f89b
--- /dev/null
+++ b/templates/email/tfl/confirm_report_sent.txt
@@ -0,0 +1 @@
+[% INCLUDE 'other-reported.txt' %]