aboutsummaryrefslogtreecommitdiffstats
path: root/bin/browser-tests
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-06-17 15:01:35 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-06-17 15:01:35 +0100
commit38c61346ca940f837b49fba3bc0548dd21b7ee39 (patch)
treeb605969bcc42abc34f71cd2f5d93a6d4fd0e7151 /bin/browser-tests
parent4fb17bc32eda72ad8649b0218a37f4e9b50b5085 (diff)
parentc6b480d08c7aa9f8a08467e2631f7daa30b3be7e (diff)
Merge branch 'issues/2475-multiple-parents-for-categories'
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;