aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorHakim Cassimally <hakim@mysociety.org>2013-12-09 16:02:57 +0000
committerHakim Cassimally <hakim@mysociety.org>2013-12-09 16:55:40 +0000
commit69ceefba6185086fd86a4a8af6ad10eb93d4c7f0 (patch)
tree4357ae15d02ed41fdbf77ffbedb021f1b23b9374 /t
parentbdc0bef4acb7477c53a5f8d57f2b7e66da03190f (diff)
[Zurich] log admin changes
To allow us to infer additional stats changes requirements such as in mysociety/FixMyStreet-Commercial#459 better in future.
Diffstat (limited to 't')
-rw-r--r--t/cobrand/zurich.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t
index 3d25e3585..a03099aac 100644
--- a/t/cobrand/zurich.t
+++ b/t/cobrand/zurich.t
@@ -555,6 +555,16 @@ subtest "test stats" => sub {
$mech->log_out_ok;
};
+subtest "test admin_log" => sub {
+ diag $report->id;
+ my @entries = FixMyStreet::App->model('DB::AdminLog')->search({
+ object_type => 'problem',
+ object_id => $report->id,
+ });
+ is scalar @entries, 4, 'State changes logged';
+ is $entries[-1]->action, 'state change to hidden', 'State change logged as expected';
+};
+
cleanup();
ok $mech->host("www.fixmystreet.com"), "change host back";