diff options
Diffstat (limited to 't/cobrand/zurich.t')
-rw-r--r-- | t/cobrand/zurich.t | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t index 6fd6677f5..fb6f172fe 100644 --- a/t/cobrand/zurich.t +++ b/t/cobrand/zurich.t @@ -79,6 +79,13 @@ $external_body->send_method( 'Zurich' ); $external_body->endpoint( 'external_body@example.org' ); $external_body->update; +subtest "set up superuser" => sub { + my $superuser = $mech->log_in_ok( 'super@example.org' ); + # a user from body $zurich is a superuser, as $zurich has no parent id! + $superuser->update({ from_body => $zurich->id }); + $mech->log_out_ok; +}; + my @reports = $mech->create_problems_for_body( 1, 2, 'Test', { state => 'unconfirmed', confirmed => undef, @@ -486,8 +493,6 @@ $mech->log_out_ok; subtest "only superuser can see stats" => sub { $user = $mech->log_in_ok( 'super@example.org' ); - # a user from body $zurich is a superuser, as $zurich has no parent id! - $user->update({ from_body => $zurich->id }); FixMyStreet::override_config { ALLOWED_COBRANDS => [ 'zurich' ], |