diff options
author | Struan Donald <struan@exo.org.uk> | 2011-08-26 11:29:33 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-08-26 11:29:33 +0100 |
commit | 43069a7218e3b092cdcb214a0a6a56d13b38f39a (patch) | |
tree | f487e9f5abb1c47a3ecbf3beda1a6a0d8cacc5af /t/app/controller/admin.t | |
parent | 2f1eccb9d70c2e763761e3909235e803f80873c9 (diff) |
test for removing flag and make it work
Diffstat (limited to 't/app/controller/admin.t')
-rw-r--r-- | t/app/controller/admin.t | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t index 324d13890..4bfdd7821 100644 --- a/t/app/controller/admin.t +++ b/t/app/controller/admin.t @@ -1054,6 +1054,20 @@ for my $test ( log_count => 4, log_entries => [qw/edit edit edit edit/], }, + { + desc => 'edit user remove flagged', + fields => { + name => 'Changed User', + email => 'changed@example.com', + council => 2607, + flagged => 'on', + }, + changes => { + flagged => undef, + }, + log_count => 4, + log_entries => [qw/edit edit edit edit/], + }, ) { subtest $test->{desc} => sub { $mech->get_ok( '/admin/user_edit/' . $user->id ); |