diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-03-12 13:51:01 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-03-12 14:00:56 +0000 |
commit | 1711bc48480812448032780a37450530e7e3ffbf (patch) | |
tree | 35d4b950c23c280fd63a61bc198255c7e83dee00 /t | |
parent | b7f1a7993f96619e5dc25e05874298b6d3b7f98d (diff) |
Better detection of DM/SDM from database details, as DM might not have children.
Diffstat (limited to 't')
-rw-r--r-- | t/cobrand/zurich.t | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t index c750b6070..ac0cc52b3 100644 --- a/t/cobrand/zurich.t +++ b/t/cobrand/zurich.t @@ -19,6 +19,8 @@ $mech->content_like( qr/zurich/i ); # Set up bodies my $zurich = $mech->create_body_ok( 1, 'Zurich' ); +$zurich->parent( undef ); +$zurich->update; my $division = $mech->create_body_ok( 2, 'Division 1' ); $division->parent( $zurich->id ); $division->send_method( 'Zurich' ); |