aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/TestMech.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-06 09:20:38 +0100
committerStruan Donald <struan@exo.org.uk>2011-06-06 09:20:38 +0100
commit819a95ae17f59f1732379926f9738caeb9ff046b (patch)
tree743c52675d1738618557f46f853ac46dd8b8530f /perllib/FixMyStreet/TestMech.pm
parente26bc99396d3eaefc3fd7d81c010dc4028767690 (diff)
parentb388fd0be5296426225089ed188b3c1cdd802415 (diff)
Merge branch 'migrate_to_catalyst' of ssh://git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
Diffstat (limited to 'perllib/FixMyStreet/TestMech.pm')
-rw-r--r--perllib/FixMyStreet/TestMech.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/TestMech.pm b/perllib/FixMyStreet/TestMech.pm
index c9f1d7dde..3dd4e84e9 100644
--- a/perllib/FixMyStreet/TestMech.pm
+++ b/perllib/FixMyStreet/TestMech.pm
@@ -151,8 +151,11 @@ sub delete_user {
ok( $_->delete, "delete questionnaire " . $_->id ) for $p->questionnaires;
ok( $p->delete, "delete problem " . $p->title );
}
+ for my $a ( $user->alerts ) {
+ $a->alert_sents->delete;
+ ok( $a->delete, "delete alert " . $a->alert_type );
+ }
ok( $_->delete, "delete comment " . $_->text ) for $user->comments;
- ok( $_->delete, "delete alert " . $_->alert_type ) for $user->alerts;
ok $user->delete, "delete test user " . $user->email;
return 1;