aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/model
diff options
context:
space:
mode:
Diffstat (limited to 't/app/model')
-rw-r--r--t/app/model/defecttype.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/app/model/defecttype.t b/t/app/model/defecttype.t
index 6a03deded..c3e3035a6 100644
--- a/t/app/model/defecttype.t
+++ b/t/app/model/defecttype.t
@@ -2,13 +2,13 @@ use FixMyStreet::App;
use FixMyStreet::TestMech;
my $mech = FixMyStreet::TestMech->new;
-my $oxfordshire = $mech->create_body_ok(2237, 'Oxfordshire County Council', id => 2237);
+my $oxfordshire = $mech->create_body_ok(2237, 'Oxfordshire County Council');
my $potholes_contact = $mech->create_contact_ok( body_id => $oxfordshire->id, category => 'Potholes', email => 'potholes@example.com' );
my $traffic_lights_contact =$mech->create_contact_ok( body_id => $oxfordshire->id, category => 'Traffic lights', email => 'lights@example.com' );
my $potholes_defect_type = FixMyStreet::App->model('DB::DefectType')->find_or_create(
{
- body_id => 2237,
+ body_id => $oxfordshire->id,
name => 'Potholes',
description => 'This defect type is to do with potholes'
}
@@ -19,7 +19,7 @@ $potholes_defect_type->contact_defect_types->find_or_create({
my $general_defect_type = FixMyStreet::App->model('DB::DefectType')->find_or_create(
{
- body_id => 2237,
+ body_id => $oxfordshire->id,
name => 'All categories',
description => 'This defect type is for all categories'
}