diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-01-10 11:56:44 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-01-10 11:56:44 +0000 |
commit | 6508407642869999c1659b5eb3ffbf71895151ea (patch) | |
tree | fa91d2b09914d2ff827863d307136357c3fe8ae9 /t/cobrand | |
parent | 9d66124566ebe5d8348ceadfeb54a7dd389e308c (diff) | |
parent | 4a3b51a366825b42f451f5eeac93b990a602e57e (diff) |
Merge branch 'tfl-old-reports'
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/tfl.t | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/cobrand/tfl.t b/t/cobrand/tfl.t index 33506e8c4..e1990c946 100644 --- a/t/cobrand/tfl.t +++ b/t/cobrand/tfl.t @@ -556,6 +556,16 @@ subtest 'check report age on /around' => sub { }); }; +subtest 'check report age in general' => sub { + my $report = FixMyStreet::DB->resultset("Problem")->find({ title => 'Test Report 1'}); + $report->update({ state => 'confirmed' }); + $mech->get_ok('/report/' . $report->id); + $report->update({ lastupdate => \"current_timestamp-'4 years'::interval" }); + $mech->get('/report/' . $report->id); + is $mech->res->code, 404; + $report->update({ lastupdate => \"current_timestamp" }); +}; + subtest 'TfL admin allows inspectors to be assigned to borough areas' => sub { $mech->log_in_ok($superuser->email); |