diff options
author | Struan Donald <struan@exo.org.uk> | 2011-06-29 17:54:26 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-06-29 17:54:26 +0100 |
commit | cad4d9856b13328fd1e64ff6b48ee47234741960 (patch) | |
tree | 5be67c7e9eb4cd1868c7526daf68f47f252b1482 /t/app/controller/admin.t | |
parent | 89e4686d589a27cd989c33d29b5852dc00459ec6 (diff) |
make sure cobrand summary tests pass even if we have barnet entries in db
Diffstat (limited to 't/app/controller/admin.t')
-rw-r--r-- | t/app/controller/admin.t | 3 |
1 files changed, 3 insertions, 0 deletions
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'); }; |