aboutsummaryrefslogtreecommitdiffstats
path: root/t/script
diff options
context:
space:
mode:
Diffstat (limited to 't/script')
-rw-r--r--t/script/inactive.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/script/inactive.t b/t/script/inactive.t
index 9d1e3f4bd..4d78b385f 100644
--- a/t/script/inactive.t
+++ b/t/script/inactive.t
@@ -50,6 +50,14 @@ subtest 'Anonymization of inactive fixed/closed reports' => sub {
is $comment->user->email, 'removed-automatically@example.org', 'Comment user anonymized';
};
+subtest 'Closing updates on inactive fixed/closed reports' => sub {
+ my $in = FixMyStreet::Script::Inactive->new( close => 1 );
+ $in->reports;
+ $problems[2]->discard_changes;
+ is $problems[2]->get_extra_metadata('closed_updates'), 1, 'Closed to updates';
+ # TODO Visit page, check closed for updates
+};
+
subtest 'Anonymization of inactive users' => sub {
$in->users;