aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-05-27 21:01:10 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-06-03 17:24:12 +0100
commit5412a569e233b82c8f971e07c57c73d2ef3f6733 (patch)
tree22c417502f49b705c278f6e71c2375d2c32780d3 /t/app/controller
parentf8859e29f5bcf75c1b2acb934bd4353f83c5a2c1 (diff)
Mark user as active when sent an email alert.
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/alert_new.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/app/controller/alert_new.t b/t/app/controller/alert_new.t
index 7eba90530..d968b56b1 100644
--- a/t/app/controller/alert_new.t
+++ b/t/app/controller/alert_new.t
@@ -523,6 +523,8 @@ subtest "Test alerts are not sent for no-text updates" => sub {
};
$mech->email_count_is(1);
+ $user2->discard_changes;
+ isnt $user2->last_active, undef, 'Last active has been set';
$mech->delete_user($user1);
$mech->delete_user($user2);