aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-08-23 08:23:41 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-08-23 09:29:08 +0100
commit690d4ad90a0b598ea3a388118d8db8fce24d7c52 (patch)
treeed554082432429d5e5f98b0c9f8d92a5d20a95a5 /t/cobrand
parentcf9e0477acd8614085654bf437162796b3a051e5 (diff)
[Buckinghamshire] Update email addresses.
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/bucks.t14
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/;
};