diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-10-14 10:47:11 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-10-14 11:29:59 +0100 |
commit | 07891b75a6973f4503789d6a231ca34c984c9a15 (patch) | |
tree | fff6b5839f84fe1724859dbbaa640fe04030e13d /perllib/FixMyStreet/TestMech.pm | |
parent | bad21915fe0ebebc797c55588841ec9e2909b093 (diff) |
Test warnfix on confirmed comments lacking time.
Diffstat (limited to 'perllib/FixMyStreet/TestMech.pm')
-rw-r--r-- | perllib/FixMyStreet/TestMech.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/TestMech.pm b/perllib/FixMyStreet/TestMech.pm index cc2020b63..e8b08ef19 100644 --- a/perllib/FixMyStreet/TestMech.pm +++ b/perllib/FixMyStreet/TestMech.pm @@ -741,6 +741,7 @@ sub create_comment_for_problem { $params->{problem_state} = $problem_state; $params->{state} = $state; $params->{mark_fixed} = $problem_state && FixMyStreet::DB::Result::Problem->fixed_states()->{$problem_state} ? 1 : 0; + $params->{confirmed} = \'current_timestamp' unless $params->{confirmed} || $state eq 'unconfirmed'; FixMyStreet::App->model('DB::Comment')->create($params); } |