diff options
author | Struan Donald <struan@exo.org.uk> | 2018-09-27 17:28:45 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2018-09-28 14:21:07 +0100 |
commit | 31e2a02395b4b3479e8abb7949a29fc437aa6ef6 (patch) | |
tree | 53673dbf030c5ab27c781f2c1591336662158d60 /t/app/controller/my_planned.t | |
parent | 0b9557c371a64fa9c1fc699ce3a8959c6131cb92 (diff) |
[Oxfordshire] remove access to inspector tool
Diffstat (limited to 't/app/controller/my_planned.t')
-rw-r--r-- | t/app/controller/my_planned.t | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/app/controller/my_planned.t b/t/app/controller/my_planned.t index 67d59e148..a6a47a798 100644 --- a/t/app/controller/my_planned.t +++ b/t/app/controller/my_planned.t @@ -1,4 +1,5 @@ use FixMyStreet::TestMech; +use Test::MockModule; my $mech = FixMyStreet::TestMech->new; $mech->get_ok('/my/planned'); @@ -187,6 +188,13 @@ FixMyStreet::override_config { ALLOWED_COBRANDS => [ 'oxfordshire' ], BASE_URL => 'http://oxfordshire.fixmystreet.site', }, sub { + my $cobrand = Test::MockModule->new('FixMyStreet::Cobrand::Oxfordshire'); + $cobrand->mock('available_permissions', sub { + my $self = shift; + + return FixMyStreet::Cobrand::Default->available_permissions; + }); + subtest "can remove problems not displayed in cobrand from shortlist" => sub { $user->user_planned_reports->remove(); my ($problem1) = $mech->create_problems_for_body(2, $body->id, 'New Problem'); |