diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-18 12:41:41 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-18 12:41:41 +0100 |
commit | f16b964144577f48513ecc291ae49b4f89897a30 (patch) | |
tree | be6e6944b1a33956fe4c7765ee59c43e5db183b2 /perllib/FixMyStreet/TestMech.pm | |
parent | d1cd5862c33dda83d74af274a0f7cf240266c0e5 (diff) |
delete comments when deleting a user
Diffstat (limited to 'perllib/FixMyStreet/TestMech.pm')
-rw-r--r-- | perllib/FixMyStreet/TestMech.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/TestMech.pm b/perllib/FixMyStreet/TestMech.pm index 6cd4a85f3..b558d0dda 100644 --- a/perllib/FixMyStreet/TestMech.pm +++ b/perllib/FixMyStreet/TestMech.pm @@ -128,6 +128,8 @@ sub delete_user { } $mech->log_out_ok; + ok( $_->delete, "delete comment" . $_->text ) # + for $user->comments; ok( $_->delete, "delete problem " . $_->title ) # for $user->problems; ok( $_->delete, "delete alert " . $_->alert_type ) |