diff options
Diffstat (limited to 't/app/controller/admin.t')
-rw-r--r-- | t/app/controller/admin.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t index d759c1238..d8b721ca9 100644 --- a/t/app/controller/admin.t +++ b/t/app/controller/admin.t @@ -259,7 +259,7 @@ subtest 'check open311 configuring' => sub { $mech->content_contains('Configuration updated - contacts will be generated automatically later'); my $open311 = - FixMyStreet::App->model('DB::Body')->search( { area_id => 2650 } ); + FixMyStreet::App->model('DB::Body')->search( { 'body_areas.area_id' => 2650 }, { join => 'body_areas' } ); is $open311->count, 1, 'only one configuration'; my $conf = $open311->first; @@ -283,7 +283,7 @@ subtest 'check open311 configuring' => sub { $mech->content_contains('Configuration updated'); $open311 = - FixMyStreet::App->model('DB::Body')->search( { area_id => 2650 } ); + FixMyStreet::App->model('DB::Body')->search( { 'body_areas.area_id' => 2650 }, { join => 'body_areas' } ); is $open311->count, 1, 'only one configuration'; $conf = $open311->first; |