diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-01-15 16:44:02 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-01-15 16:44:05 +0000 |
commit | 68ba122ede2e5b19f76e671f6cf910d5047686d0 (patch) | |
tree | ee40c9749286b5485ae445f5d05dba75592a2651 /t/cobrand | |
parent | 9e75d02fd745f64dfee1f960196718c299d3bd0a (diff) |
Remove unused (except by tests) send_reports() fn.
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/bromley.t | 3 | ||||
-rw-r--r-- | t/cobrand/fixamingata.t | 3 | ||||
-rw-r--r-- | t/cobrand/zurich.t | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/t/cobrand/bromley.t b/t/cobrand/bromley.t index a64337085..a3a807bb1 100644 --- a/t/cobrand/bromley.t +++ b/t/cobrand/bromley.t @@ -1,5 +1,6 @@ use CGI::Simple; use FixMyStreet::TestMech; +use FixMyStreet::Script::Reports; my $mech = FixMyStreet::TestMech->new; # Create test data @@ -54,7 +55,7 @@ subtest 'testing special Open311 behaviour', sub { STAGING_FLAGS => { send_reports => 1 }, ALLOWED_COBRANDS => [ 'fixmystreet', 'bromley' ], }, sub { - $test_data = FixMyStreet::DB->resultset('Problem')->send_reports(); + $test_data = FixMyStreet::Script::Reports::send(); }; $report->discard_changes; ok $report->whensent, 'Report marked as sent'; diff --git a/t/cobrand/fixamingata.t b/t/cobrand/fixamingata.t index 133a8c950..0aa264660 100644 --- a/t/cobrand/fixamingata.t +++ b/t/cobrand/fixamingata.t @@ -1,5 +1,6 @@ use mySociety::Locale; +use FixMyStreet::Script::Reports; use FixMyStreet::TestMech; my $mech = FixMyStreet::TestMech->new; @@ -35,7 +36,7 @@ $mech->email_count_is(0); FixMyStreet::override_config { ALLOWED_COBRANDS => [ 'fixamingata' ], }, sub { - FixMyStreet::DB->resultset('Problem')->send_reports(); + FixMyStreet::Script::Reports::send(); }; my $email = $mech->get_email; my $plain = $mech->get_text_body_from_email($email, 1); diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t index e0671db2a..8c2c70c2f 100644 --- a/t/cobrand/zurich.t +++ b/t/cobrand/zurich.t @@ -7,6 +7,7 @@ use LWP::Protocol::PSGI; use Test::LongString; use Path::Tiny; use t::Mock::MapItZurich; +use FixMyStreet::Script::Reports; use FixMyStreet::TestMech; my $mech = FixMyStreet::TestMech->new; @@ -36,7 +37,7 @@ sub send_reports_for_zurich { ALLOWED_COBRANDS => ['zurich'] }, sub { # Actually send the report - FixMyStreet::DB->resultset('Problem')->send_reports('zurich'); + FixMyStreet::Script::Reports::send('zurich'); }; } sub reset_report_state { |