aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/report_import.t
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller/report_import.t')
-rw-r--r--t/app/controller/report_import.t9
1 files changed, 4 insertions, 5 deletions
diff --git a/t/app/controller/report_import.t b/t/app/controller/report_import.t
index 223979d1b..b2e15330a 100644
--- a/t/app/controller/report_import.t
+++ b/t/app/controller/report_import.t
@@ -1,5 +1,4 @@
use FixMyStreet::TestMech;
-use FixMyStreet::App;
use Web::Scraper;
use Path::Class;
use LWP::Protocol::PSGI;
@@ -17,7 +16,7 @@ ok -e $sample_file, "sample file $sample_file exists";
FixMyStreet::App->log->disable('info');
END { FixMyStreet::App->log->enable('info'); }
-my $body = $mech->create_body_ok(2245, 'Wiltshire Council');
+my $body = $mech->create_body_ok(2608, 'Borsetshire Council');
$mech->create_contact_ok(
body_id => $body->id,
category => 'Street lighting',
@@ -227,7 +226,7 @@ subtest "Submit a correct entry" => sub {
# check that report has been created
my $user =
- FixMyStreet::App->model('DB::User')
+ FixMyStreet::DB->resultset('User')
->find( { email => 'test@example.com' } );
ok $user, "Found a user";
@@ -315,7 +314,7 @@ subtest "Submit a correct entry (with location)" => sub {
# check that report has been created
my $user =
- FixMyStreet::App->model('DB::User')
+ FixMyStreet::DB->resultset('User')
->find( { email => 'test-ll@example.com' } );
ok $user, "Found a user";
@@ -382,7 +381,7 @@ subtest "Submit a correct entry (with location) to cobrand" => sub {
"check imported fields are shown"
or diag Dumper( $mech->visible_form_values ); use Data::Dumper;
- my $user = FixMyStreet::App->model('DB::User')->find( { email => 'test-ll@example.com' } );
+ my $user = FixMyStreet::DB->resultset('User')->find( { email => 'test-ll@example.com' } );
ok $user, "Found a user";
my $report = $user->problems->first;