diff options
author | Struan Donald <struan@exo.org.uk> | 2019-05-29 14:40:06 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-06-17 14:24:22 +0100 |
commit | fd39e58506c712ce691a13485fa7f8184c22213a (patch) | |
tree | a054f046f4e4dc2f8cee4e470788b78140cae499 /t/app/controller/admin | |
parent | e1edee8c566eb02ddaeedb9cbec68c65abfc64be (diff) |
configure category_groups via COBRAND_FEATURES
Rather than have a method in the Cobrand module use the COBRAND_FEATURES
section of the config file.
Diffstat (limited to 't/app/controller/admin')
-rw-r--r-- | t/app/controller/admin/bodies.t | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/t/app/controller/admin/bodies.t b/t/app/controller/admin/bodies.t index f67e45bf6..d2ae28e9d 100644 --- a/t/app/controller/admin/bodies.t +++ b/t/app/controller/admin/bodies.t @@ -1,10 +1,3 @@ -package FixMyStreet::Cobrand::Tester; - -use parent 'FixMyStreet::Cobrand::Default'; - -sub enable_category_groups { 1 } - -package main; use FixMyStreet::TestMech; my $mech = FixMyStreet::TestMech->new; @@ -210,10 +203,12 @@ subtest 'check text output' => sub { }; # END of override wrap FixMyStreet::override_config { - ALLOWED_COBRANDS => ['tester'], MAPIT_URL => 'http://mapit.uk/', MAPIT_TYPES => [ 'UTA' ], BASE_URL => 'http://www.example.org', + COBRAND_FEATURES => { + category_groups => { default => 1 }, + } }, sub { subtest 'group editing works' => sub { $mech->get_ok('/admin/body/' . $body->id); |