aboutsummaryrefslogtreecommitdiffstats
path: root/bin/browser-tests
diff options
context:
space:
mode:
Diffstat (limited to 'bin/browser-tests')
-rwxr-xr-xbin/browser-tests7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/browser-tests b/bin/browser-tests
index 99af08ee1..b5241490e 100755
--- a/bin/browser-tests
+++ b/bin/browser-tests
@@ -88,6 +88,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;
@@ -112,10 +115,8 @@ sub run {
kill 'TERM', $pid if $pid;
exit $exit >> 8;
} else {
- require 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;