aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/sendreport/email.t
diff options
context:
space:
mode:
Diffstat (limited to 't/app/sendreport/email.t')
-rw-r--r--t/app/sendreport/email.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/app/sendreport/email.t b/t/app/sendreport/email.t
index 3e6db4f67..cfd70a097 100644
--- a/t/app/sendreport/email.t
+++ b/t/app/sendreport/email.t
@@ -63,14 +63,14 @@ foreach my $test ( {
is $e->build_recipient_list( $row, {} ), $test->{count}, 'correct recipient list count';
if ( $test->{unconfirmed} ) {
- is_deeply $e->unconfirmed_counts, { 'council@example.com' => { 'category' => 1 } }, 'correct unconfirmed_counts count';
- is_deeply $e->unconfirmed_notes, { 'council@example.com' => { 'category' => $test->{expected_note} } }, 'correct note used';
+ is_deeply $e->unconfirmed_data, { 'council@example.com' => {
+ 'category' => { 'count' => 1, 'note' => $test->{expected_note} }
+ } }, 'correct unconfirmed_data';
}
};
}
-$body->body_areas->delete;
-$body->body_areas->create({ area_id => 2429 });
+$body->update({ name => 'Somerset West and Taunton Council' });
subtest 'Test special behaviour' => sub {
my $e = FixMyStreet::SendReport::Email->new;