aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/browser-tests2
-rwxr-xr-xbin/fixmystreet.com/fixture9
2 files changed, 10 insertions, 1 deletions
diff --git a/bin/browser-tests b/bin/browser-tests
index b5241490e..6ce9159bf 100755
--- a/bin/browser-tests
+++ b/bin/browser-tests
@@ -11,7 +11,7 @@ my ($cobrand, $coords, $area_id, $name, $mapit_url);
BEGIN {
$config_file = 'conf/general.yml-example';
- $cobrand = [ 'fixmystreet', 'northamptonshire', 'bathnes', 'buckinghamshire' ];
+ $cobrand = [ 'fixmystreet', 'northamptonshire', 'bathnes', 'buckinghamshire', 'hounslow' ];
$coords = '51.532851,-2.284277';
$area_id = 2608;
$name = 'Borsetshire';
diff --git a/bin/fixmystreet.com/fixture b/bin/fixmystreet.com/fixture
index 3c3336811..f4f33e679 100755
--- a/bin/fixmystreet.com/fixture
+++ b/bin/fixmystreet.com/fixture
@@ -98,6 +98,7 @@ if ($opt->test_fixtures) {
{ area_id => 2217, categories => ['Flytipping', 'Roads'], name => 'Buckinghamshire County Council' },
{ area_id => 2257, categories => ['Flytipping', 'Graffiti'], name => 'Chiltern District Council' },
{ area_id => 2397, categories => [ 'Graffiti' ], name => 'Northampton Borough Council' },
+ { area_id => 2483, categories => [ 'Potholes', 'Other' ], name => 'Hounslow Borough Council' },
) {
$bodies->{$_->{area_id}} = FixMyStreet::DB::Factory::Body->find_or_create($_);
my $cats = join(', ', @{$_->{categories}});
@@ -134,6 +135,14 @@ if ($opt->test_fixtures) {
],
});
$child_cat->update;
+
+ $child_cat = FixMyStreet::DB->resultset("Contact")->find({
+ body => $bodies->{2483},
+ category => 'Other',
+ });
+ $child_cat->update({
+ non_public => 1
+ });
}
FixMyStreet::DB::Factory::ResponseTemplate->create({