diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-06-27 18:11:06 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-07-15 12:30:31 +0100 |
commit | 34198b1d52dd38c4947a4073eecfe7ffff52afb3 (patch) | |
tree | 94c1e1ea269e753f0adcb0023f472f7ac2d31ab1 /t/app | |
parent | 4eede46db49e74581f39e33bcd5e11b8638eaa9b (diff) |
Allow editing of category on admin report edit.
This also updates the body column to match the category.
Diffstat (limited to 't/app')
-rw-r--r-- | t/app/controller/admin.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t index 007948299..d7fcb30e6 100644 --- a/t/app/controller/admin.t +++ b/t/app/controller/admin.t @@ -531,7 +531,7 @@ foreach my $test ( $log_entries->reset; $mech->get_ok("/admin/report_edit/$report_id"); - @{$test->{fields}}{'external_id', 'external_body', 'external_team'} = (13, "", ""); + @{$test->{fields}}{'external_id', 'external_body', 'external_team', 'category'} = (13, "", "", "Other"); is_deeply( $mech->visible_form_values(), $test->{fields}, 'initial form values' ); my $new_fields = { @@ -582,6 +582,7 @@ subtest 'change email to new user' => sub { state => $report->state, name => $report->name, email => $report->user->email, + category => 'Other', anonymous => 1, flagged => 'on', non_public => 'on', |