aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-11-08 15:47:18 +0000
committerDave Arter <davea@mysociety.org>2019-12-09 12:48:13 +0000
commit1fd8b6c22d7dcb97e8475ae1332af40b4ccc2f81 (patch)
tree022ffc58de59ba5740030f979aa4b8d814897e95 /t/app/controller
parent2814031fd4775ede40b2627731fb815e5d4ed3c9 (diff)
Record first time fixed/closed update sent to reporter in email.
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/alert_new.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/app/controller/alert_new.t b/t/app/controller/alert_new.t
index a5a2a52b3..ed2bc814c 100644
--- a/t/app/controller/alert_new.t
+++ b/t/app/controller/alert_new.t
@@ -412,6 +412,9 @@ subtest "Test normal alert signups and that alerts are sent" => sub {
is +(my $c = () = $email->as_string =~ /Other User/g), 2, 'Update name given, twice';
unlike $email->as_string, qr/Anonymous User/, 'Update name not given';
+ $report->discard_changes;
+ ok $report->get_extra_metadata('closure_alert_sent_at'), 'Closure time set';
+
# The update alert was to the problem reporter, so has a special update URL
$mech->log_out_ok;
$mech->get_ok( "/report/$report_id" );