-
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bexley] Look up service description.
Adds the service description to the report title, so it's e.g. included in the template email. https://mysocietysupport.freshdesk.com/a/tickets/4449
- Loading branch information
1 parent
18d042a
commit 91bc758
Showing
3 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ use Test::MockTime 'set_fixed_time'; | |
use Test::Output; | ||
use FixMyStreet::TestMech; | ||
use FixMyStreet::Script::Reports; | ||
use FixMyStreet::Script::Alerts; | ||
|
||
FixMyStreet::App->log->disable('info'); | ||
END { FixMyStreet::App->log->enable('info'); } | ||
|
@@ -846,7 +847,13 @@ FixMyStreet::override_config { | |
'Submitting missed collection report' | ||
); | ||
$mech->content_contains('Missed collection has been reported'); | ||
|
||
FixMyStreet::Script::Reports::send(); | ||
my @emails = $mech->get_email; | ||
my $email; | ||
for my $mail (@emails) { | ||
$email = $mail->as_string if $mail->header('To') =~ '[email protected]'; | ||
}; | ||
like $email, qr/Brown Caddy \(Food waste\)/, 'Service added to title'; | ||
my @reports = FixMyStreet::DB->resultset("Problem")->all; | ||
is @reports, 1, 'only one report created'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters