aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-06-14 16:49:18 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-06-14 16:49:18 +0100
commit041d730e186ae6398c9fc61446bc67373ace0ec8 (patch)
tree43725b6a4baabc2a1c15b1335c43340e0ae3be04 /t/app/controller
parent620f675f6acc79158eac8d20512613514705b850 (diff)
parent46fd6e9bfe5d00230aec44188e66c60e89c416e5 (diff)
Merge branch 'issues/commercial/1038-bromley-tfl-direct'
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/report_new.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t
index dff04176b..4022ba31a 100644
--- a/t/app/controller/report_new.t
+++ b/t/app/controller/report_new.t
@@ -960,9 +960,9 @@ foreach my $test (
email_count => 1,
},
{
- desc => "test invalid single_body_only means multiple report bodies",
+ desc => "test invalid single_body_only means no report bodies",
category => 'Street lighting',
- councils => [ 2226, 2326 ],
+ councils => [],
extra_fields => { single_body_only => 'Invalid council' },
email_count => 1,
},
@@ -1036,7 +1036,7 @@ foreach my $test (
ok $report, "Found the report";
# Check the report has been assigned appropriately
- is $report->bodies_str, join(',', @body_ids{@{$test->{councils}}});
+ is $report->bodies_str, join(',', @body_ids{@{$test->{councils}}}) || undef;
$mech->content_contains('Thank you for reporting this issue');