diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-08-23 13:53:09 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-08-23 13:53:09 +0100 |
commit | 438af2f1fe782b720f3de1b974ea8828455b65fd (patch) | |
tree | 89dfd4ed2a48f1c124c96190fddb3c9e213d62a6 /t/cobrand | |
parent | 3c73315e3b6a9d403b008bb06a6497224f2486c4 (diff) | |
parent | 690d4ad90a0b598ea3a388118d8db8fce24d7c52 (diff) |
Merge branch 'bucks-email-change'
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/bucks.t | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/t/cobrand/bucks.t b/t/cobrand/bucks.t index 2d42dcd81..a3ae3a196 100644 --- a/t/cobrand/bucks.t +++ b/t/cobrand/bucks.t @@ -27,6 +27,14 @@ FixMyStreet::override_config { ALLOWED_COBRANDS => [ 'buckinghamshire', 'fixmystreet' ], MAPIT_URL => 'http://mapit.uk/', STAGING_FLAGS => { send_reports => 1, skip_checks => 0 }, + COBRAND_FEATURES => { + open311_email => { + buckinghamshire => { + flytipping => 'flytipping@example.org', + flood => 'floods@example.org', + } + } + } }, sub { subtest 'cobrand displays council name' => sub { @@ -54,8 +62,7 @@ my ($report) = $mech->create_problems_for_body(1, $body->id, 'On Road', { subtest 'flytipping on road sent to extra email' => sub { FixMyStreet::Script::Reports::send(); my @email = $mech->get_email; - my $tfb = join('', 'illegaldumpingcosts', '@', 'buckscc.gov.uk'); - is $email[0]->header('To'), 'TfB <' . $tfb . '>'; + is $email[0]->header('To'), 'TfB <flytipping@example.org>'; like $mech->get_text_body_from_email($email[1]), qr/report's reference number/; $report->discard_changes; is $report->external_id, 248, 'Report has right external ID'; @@ -101,8 +108,7 @@ subtest 'blocked drain sent to extra email' => sub { $mech->clear_emails_ok; FixMyStreet::Script::Reports::send(); my @email = $mech->get_email; - my $e = join('@', 'floodmanagement', 'buckscc.gov.uk'); - is $email[0]->header('To'), '"Flood Management" <' . $e . '>'; + is $email[0]->header('To'), '"Flood Management" <floods@example.org>'; like $mech->get_text_body_from_email($email[1]), qr/report's reference number/; }; |