diff options
author | Chris Mytton <self@hecticjeff.net> | 2013-09-12 09:57:17 +0100 |
---|---|---|
committer | Chris Mytton <self@hecticjeff.net> | 2013-09-12 09:57:17 +0100 |
commit | 738b1068c8ea9df4a24056f1784ff5846bb8bb6b (patch) | |
tree | bdbbf99b6c4e4286d9bdf6f380b9df941e663fe4 /t/cobrand | |
parent | 70ee276344b374773902d9a96c84ad81d7bdfafe (diff) | |
parent | ca4487b3b161b857ef5412f93ecd60646697ff2d (diff) |
Merge branch 'zurich-mark-external-addresses-deleted'
Conflicts:
t/cobrand/zurich.t
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/zurich.t | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t index 7a060ae2b..869e5d460 100644 --- a/t/cobrand/zurich.t +++ b/t/cobrand/zurich.t @@ -311,6 +311,20 @@ $mech->submit_form( with_fields => { phone => "" } ); $mech->content_contains( 'Diese Information wird benötigt' ); $mech->log_out_ok; +# Test problems can't be assigned to deleted bodies +$user = $mech->log_in_ok( 'dm1@example.org' ); +$user->from_body( 1 ); +$user->update; +$report->state( 'confirmed' ); +$report->update; +$mech->get_ok( '/admin/body/' . $external_body->id ); +$mech->submit_form_ok( { with_fields => { deleted => 1 } } ); +$mech->get_ok( '/admin/report_edit/' . $report->id ); +$mech->content_lacks( $external_body->name ); +$user->from_body( 2 ); +$user->update; +$mech->log_out_ok; + $mech->delete_problems_for_body( 2 ); $mech->delete_user( 'dm1@example.org' ); $mech->delete_user( 'sdm1@example.org' ); |