From cad4d9856b13328fd1e64ff6b48ee47234741960 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Wed, 29 Jun 2011 17:54:26 +0100 Subject: make sure cobrand summary tests pass even if we have barnet entries in db --- t/app/controller/admin.t | 3 +++ 1 file changed, 3 insertions(+) (limited to 't/app/controller/admin.t') diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t index 2ada0d2ea..c5d253459 100644 --- a/t/app/controller/admin.t +++ b/t/app/controller/admin.t @@ -82,6 +82,8 @@ subtest 'check summary counts' => sub { my $problem_count = $problems->count; $problems->update( { cobrand => '' } ); + FixMyStreet::App->model('DB::Problem')->search( { council => 2489 } )->update( { council => 1 } ); + my $q = FixMyStreet::App->model('DB::Questionnaire')->find_or_new( { problem => $report, }); $q->whensent( \'ms_current_timestamp()' ); $q->in_storage ? $q->update : $q->insert; @@ -130,6 +132,7 @@ subtest 'check summary counts' => sub { $alert->cobrand(''); $alert->update; + FixMyStreet::App->model('DB::Problem')->search( { council => 1 } )->update( { council => 2489 } ); ok $mech->host('fixmystreet.com'); }; -- cgit v1.2.3