diff options
Diffstat (limited to 't/cobrand/seesomething.t')
-rw-r--r-- | t/cobrand/seesomething.t | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/t/cobrand/seesomething.t b/t/cobrand/seesomething.t index 57a8a11ed..4da1c9c6e 100644 --- a/t/cobrand/seesomething.t +++ b/t/cobrand/seesomething.t @@ -2,7 +2,6 @@ use strict; use warnings; use DateTime; use Test::More; -use JSON; use FixMyStreet; use FixMyStreet::TestMech; @@ -10,7 +9,7 @@ use FixMyStreet::TestMech; my $EMAIL = 'seesomething@example.com'; my $mech = FixMyStreet::TestMech->new; -my $db = FixMyStreet::App->model('DB')->schema; +my $db = FixMyStreet::DB->storage->schema; my $dt_parser = $db->storage->datetime_parser; $db->txn_begin; @@ -32,7 +31,7 @@ $user->update({ from_body => $body }); my $date = $dt_parser->format_datetime(DateTime->now); -my $report = FixMyStreet::App->model('DB::Problem')->find_or_create( { +my $report = FixMyStreet::DB->resultset('Problem')->find_or_create( { postcode => 'EH1 1BB', bodies_str => '2520', areas => ',2520,', |