diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-06-12 17:03:15 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-06-14 16:36:44 +0100 |
commit | 591cbac874c018b1bc128e5bb68d82021e93ec86 (patch) | |
tree | 6527a4c4a3afa1c52df8de2f6e079cfbe9d62bac /t/app/controller | |
parent | a13030334a7b399150baad5a2372a15a527e2b79 (diff) |
If single_body_only set, skip contact body check.
This assumes the SendReport code will deal with the issue.
Diffstat (limited to 't/app/controller')
-rw-r--r-- | t/app/controller/report_new.t | 6 |
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'); |