diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-12-14 19:07:08 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-12-19 14:43:26 +0000 |
commit | ddf9dbdbf6486c781ca4a5822614b0b7cee2c062 (patch) | |
tree | 09c12affc3390138b03292d3f90810287b4941d0 /t/open311/populate-service-list.t | |
parent | da29e8a75eaa92e98807ad89d29d3d1f3c01bc14 (diff) |
Allow bodies to span multiple area IDs, and areas can be covered by more than one body.
Diffstat (limited to 't/open311/populate-service-list.t')
-rw-r--r-- | t/open311/populate-service-list.t | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/open311/populate-service-list.t b/t/open311/populate-service-list.t index ae5879896..f33fc97b4 100644 --- a/t/open311/populate-service-list.t +++ b/t/open311/populate-service-list.t @@ -20,11 +20,16 @@ ok $processor, 'created object'; my $body = FixMyStreet::App->model('DB::Body')->find_or_create( { id => 1, name => 'Body Numero Uno', +} ); +$body->body_areas->find_or_create({ area_id => 1 } ); + my $bromley = FixMyStreet::App->model('DB::Body')->find_or_create( { id => 2482, name => 'Bromley Council', +} ); +$bromley->body_areas->find_or_create({ area_id => 2482 } ); |