diff options
author | Hakim Cassimally <hakim@mysociety.org> | 2013-12-20 13:01:21 +0000 |
---|---|---|
committer | Hakim Cassimally <hakim@mysociety.org> | 2013-12-20 13:01:21 +0000 |
commit | 1c864eee5d36fd71910aaac6bae9191e2c131f17 (patch) | |
tree | f12823628372001013a1032aefc2b2194fe32617 /t/cobrand | |
parent | f835b7f31fc79985325f6286328eec1a4ee8db8a (diff) | |
parent | 5c560e509daf57951d0a3a784022a7b75c7ab298 (diff) |
Merge branch 'issues/commercial/462-zurich-overdue-row-colour'
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/zurich.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t index f6cbeffed..86bfcccea 100644 --- a/t/cobrand/zurich.t +++ b/t/cobrand/zurich.t @@ -280,7 +280,11 @@ subtest "report_edit" => sub { is ( $report->extra->{closed_overdue}, 0, 'Marking hidden from scratch also set closed_overdue' ); is get_moderated_count(), 1; - reset_report_state($report); + is (FixMyStreet::Cobrand::Zurich->new->get_or_check_overdue($report), 0, 'sanity check'); + $report->update({ created => $created->clone->subtract(days => 10) }); + is (FixMyStreet::Cobrand::Zurich->new->get_or_check_overdue($report), 0, 'overdue call not increased'); + + reset_report_state($report, $created); }; FixMyStreet::override_config { |