diff options
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; |