diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/browser-tests | 3 | ||||
-rwxr-xr-x | bin/fixmystreet.com/fixture | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/bin/browser-tests b/bin/browser-tests index 00cfbc346..d77894dcc 100755 --- a/bin/browser-tests +++ b/bin/browser-tests @@ -94,6 +94,9 @@ 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 local $ENV{FIXMYSTREET_APP_DEBUG} = 0; require Plack::Runner; diff --git a/bin/fixmystreet.com/fixture b/bin/fixmystreet.com/fixture index ceefbcc9d..8e943a5b5 100755 --- a/bin/fixmystreet.com/fixture +++ b/bin/fixmystreet.com/fixture @@ -46,6 +46,15 @@ my $body = FixMyStreet::DB::Factory::Body->find_or_create({ }); say "Created body " . $body->name . " for MapIt area ID " . $opt->area_id . ', categories ' . join(', ', @$categories); +for my $cat (qw/Overflowing Broken Missing/) { + my $child_cat = FixMyStreet::DB::Factory::Contact->find_or_create({ + body => $body, + category => $cat + }); + $child_cat->set_extra_metadata( group => 'Bins' ); + $child_cat->update; +} + FixMyStreet::DB::Factory::ResponseTemplate->create({ body => $body, title => 'Generic', text => 'Thank you for your report, we will be in touch with an update soon.' }); |