diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-03-12 09:56:30 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-03-31 09:48:39 +0100 |
commit | 80e17014ca70571666e7524d1a161873f18581c3 (patch) | |
tree | a88fb8846e39399b2b28a5f82fe2f23759b096f3 /t/app | |
parent | 7ed376410d38c3d86981f005d12ad77e3f1501d1 (diff) |
Refactor Script::Report into an object.
Diffstat (limited to 't/app')
-rw-r--r-- | t/app/sendreport/email.t | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/t/app/sendreport/email.t b/t/app/sendreport/email.t index 7480d6aab..cfd70a097 100644 --- a/t/app/sendreport/email.t +++ b/t/app/sendreport/email.t @@ -63,8 +63,9 @@ 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'; } }; } |