aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/report_new.t
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2019-05-29 14:40:06 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-06-17 14:24:22 +0100
commitfd39e58506c712ce691a13485fa7f8184c22213a (patch)
treea054f046f4e4dc2f8cee4e470788b78140cae499 /t/app/controller/report_new.t
parente1edee8c566eb02ddaeedb9cbec68c65abfc64be (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/report_new.t')
-rw-r--r--t/app/controller/report_new.t5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t
index 848529686..d6b256be1 100644
--- a/t/app/controller/report_new.t
+++ b/t/app/controller/report_new.t
@@ -1271,11 +1271,12 @@ subtest "Test inactive categories" => sub {
};
subtest "category groups" => sub {
- my $cobrand = Test::MockModule->new('FixMyStreet::Cobrand::FixMyStreet');
- $cobrand->mock('enable_category_groups', sub { 1 });
FixMyStreet::override_config {
ALLOWED_COBRANDS => 'fixmystreet',
MAPIT_URL => 'http://mapit.uk/',
+ COBRAND_FEATURES => {
+ category_groups => { fixmystreet => 1 }
+ }
}, sub {
$contact2->update( { extra => { group => 'Roads' } } );
$contact9->update( { extra => { group => 'Roads' } } );