diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-05-15 13:05:17 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-05-23 18:55:10 +0100 |
commit | 15678f4923a3395fc3bb4b6c6cc82cf38d09021e (patch) | |
tree | a8ae0b8b0a1d48f79e41fcaedcd5dd155620e8ec /t | |
parent | eb58ad65f8b25be9dc4321ca5914ad1d89f8bf3a (diff) |
Add ability to close updates on reports.
The inactive report script can mark matched reports as closed for updates.
This removes the update form and signing up for updates from a report page.
Diffstat (limited to 't')
-rw-r--r-- | t/script/inactive.t | 8 |
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; |