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 /bin/browser-tests | |
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 'bin/browser-tests')
-rwxr-xr-x | bin/browser-tests | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/browser-tests b/bin/browser-tests index 37f542c92..da6db6737 100755 --- a/bin/browser-tests +++ b/bin/browser-tests @@ -75,6 +75,9 @@ sub run { ALLOWED_COBRANDS => $cobrand, MAPIT_URL => $mapit_url, BASE_URL => 'http://fixmystreet.localhost:3001', + COBRAND_FEATURES => { + category_groups => { map { $_ => 1 } @$cobrand }, + } }); $ENV{FMS_OVERRIDE_CONFIG} = $config_out; @@ -95,10 +98,8 @@ sub run { kill 'TERM', $pid if $pid; exit $exit >> 8; } else { - use Test::MockModule; - my $c = Test::MockModule->new('FixMyStreet::Cobrand::FixMyStreet'); - $c->mock('enable_category_groups', sub { 1 }); # Child, run the server on port 3001 + require FixMyStreet; FixMyStreet->test_mode(1); # So email doesn't try to send local $ENV{FIXMYSTREET_APP_DEBUG} = 0; require Plack::Runner; |