diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-01-09 22:55:08 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-01-13 16:28:50 +0000 |
commit | 676181084d88b0ec94d42521162b4571cb0c0552 (patch) | |
tree | 744979e676295aa7daf2de3aa03818b1f6419fb6 /t | |
parent | 4ae8d597a80d91084dcdcd999d480f41a57c70d1 (diff) |
Use same handling for cron and non-cron email.
This means that e.g. SMTP authentication is used when set up by all
emails, not just non-cron ones. Fixes #988.
Diffstat (limited to 't')
-rw-r--r-- | t/app/model/problem.t | 2 | ||||
-rw-r--r-- | t/app/sendreport/email.t | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/t/app/model/problem.t b/t/app/model/problem.t index 6ad933db8..c40e9e022 100644 --- a/t/app/model/problem.t +++ b/t/app/model/problem.t @@ -5,9 +5,9 @@ use warnings; use Test::More; +use FixMyStreet::TestMech; use FixMyStreet; use FixMyStreet::App; -use FixMyStreet::TestMech; use mySociety::Locale; use Sub::Override; diff --git a/t/app/sendreport/email.t b/t/app/sendreport/email.t index 8063c928f..b2cab42ed 100644 --- a/t/app/sendreport/email.t +++ b/t/app/sendreport/email.t @@ -50,14 +50,14 @@ foreach my $test ( { }, { desc => 'unconfirmed contact results in no receipients', - count => undef, + count => 0, add_council => 1, unconfirmed => 1, expected_note => 'Body 1000 deleted', }, { desc => 'unconfirmed contact note uses note from contact table', - count => undef, + count => 0, add_council => 1, unconfirmed => 1, note => 'received bounced so unconfirmed', |