diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-11-22 13:04:34 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-11-22 13:11:51 +0000 |
commit | 9f855f70a644c79182128b7c5384a460e5c2450d (patch) | |
tree | a672d8ddd856a1a73f577389a835647146a3f2e7 /t/app/controller/report_inspect.t | |
parent | 399a38c4636fac6ce4a2eb21053604ba74309a36 (diff) |
Replace use of FixMyStreet::App with DB in tests.
Diffstat (limited to 't/app/controller/report_inspect.t')
-rw-r--r-- | t/app/controller/report_inspect.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/app/controller/report_inspect.t b/t/app/controller/report_inspect.t index 61fa821b2..6ba4fe115 100644 --- a/t/app/controller/report_inspect.t +++ b/t/app/controller/report_inspect.t @@ -101,7 +101,7 @@ FixMyStreet::override_config { $mech->get_ok("/report/$report_id"); $mech->submit_form_ok({ button => 'save', with_fields => { non_public => 1 } }); $report->discard_changes; - my $alert = FixMyStreet::App->model('DB::Alert')->find( + my $alert = FixMyStreet::DB->resultset('Alert')->find( { user => $user, alert_type => 'new_updates', confirmed => 1, } ); @@ -118,7 +118,7 @@ FixMyStreet::override_config { $mech->get_ok("/report/$report_id"); $mech->submit_form_ok({ button => 'save', with_fields => { traffic_information => 'Yes', state => 'Action scheduled', include_update => undef } }); $report->discard_changes; - my $alert = FixMyStreet::App->model('DB::Alert')->find( + my $alert = FixMyStreet::DB->resultset('Alert')->find( { user => $user, alert_type => 'new_updates', confirmed => 1, } ); @@ -290,7 +290,7 @@ FixMyStreet::override_config { $mech->get_ok("/report/$report_id"); $mech->submit_form_ok({ button => 'save', with_fields => { state => 'Investigating', public_update => "We're investigating.", include_update => "1" } }); - my $alert_count = FixMyStreet::App->model('DB::Alert')->search( + my $alert_count = FixMyStreet::DB->resultset('Alert')->search( { user_id => $user->id, alert_type => 'new_updates', confirmed => 1, parameter => $report_id } )->count(); |