aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/TestMech.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/TestMech.pm')
-rw-r--r--perllib/FixMyStreet/TestMech.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/TestMech.pm b/perllib/FixMyStreet/TestMech.pm
index dbfc94286..ac2ac023d 100644
--- a/perllib/FixMyStreet/TestMech.pm
+++ b/perllib/FixMyStreet/TestMech.pm
@@ -630,6 +630,14 @@ sub delete_defect_type {
$defect_type->delete;
}
+sub delete_response_template {
+ my $mech = shift;
+ my $response_template = shift;
+
+ $response_template->contact_response_templates->delete_all;
+ $response_template->delete;
+}
+
sub create_contact_ok {
my $self = shift;
my %contact_params = (