aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/about.t9
-rw-r--r--t/app/controller/admin.t4
-rw-r--r--t/app/controller/admin_permissions.t4
-rw-r--r--t/app/controller/alert.t3
-rw-r--r--t/app/controller/alert_new.t4
-rw-r--r--t/app/controller/around.t4
-rw-r--r--t/app/controller/auth.t4
-rw-r--r--t/app/controller/auth_social.t3
-rw-r--r--t/app/controller/contact.t4
-rw-r--r--t/app/controller/dashboard.t3
-rw-r--r--t/app/controller/index.t4
-rw-r--r--t/app/controller/json.t5
-rw-r--r--t/app/controller/moderate.t5
-rw-r--r--t/app/controller/my.t5
-rw-r--r--t/app/controller/my_planned.t5
-rw-r--r--t/app/controller/open311.t5
-rw-r--r--t/app/controller/photo.t7
-rw-r--r--t/app/controller/questionnaire.t3
-rw-r--r--t/app/controller/report_as_other.t4
-rw-r--r--t/app/controller/report_display.t4
-rw-r--r--t/app/controller/report_import.t4
-rw-r--r--t/app/controller/report_inspect.t4
-rw-r--r--t/app/controller/report_interest_count.t5
-rw-r--r--t/app/controller/report_new.t5
-rw-r--r--t/app/controller/report_new_mobile.t1
-rw-r--r--t/app/controller/report_new_open311.t4
-rw-r--r--t/app/controller/report_updates.t4
-rw-r--r--t/app/controller/reports.t3
-rw-r--r--t/app/controller/rss.t4
-rw-r--r--t/app/controller/token.t5
30 files changed, 2 insertions, 126 deletions
diff --git a/t/app/controller/about.t b/t/app/controller/about.t
index cec50abfa..8f3f25e27 100644
--- a/t/app/controller/about.t
+++ b/t/app/controller/about.t
@@ -1,11 +1,6 @@
-use utf8;
-use strict;
-use warnings;
+use FixMyStreet::TestMech;
-use Test::More;
-use Test::WWW::Mechanize::Catalyst 'FixMyStreet::App';
-
-ok( my $mech = Test::WWW::Mechanize::Catalyst->new, 'Created mech object' );
+ok( my $mech = FixMyStreet::TestMech->new, 'Created mech object' );
# check that we can get the page
$mech->get_ok('/faq');
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t
index 5f8abe5a6..48a5edc44 100644
--- a/t/app/controller/admin.t
+++ b/t/app/controller/admin.t
@@ -1,7 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
-
use FixMyStreet::TestMech;
my $mech = FixMyStreet::TestMech->new;
diff --git a/t/app/controller/admin_permissions.t b/t/app/controller/admin_permissions.t
index dd256173d..c79087639 100644
--- a/t/app/controller/admin_permissions.t
+++ b/t/app/controller/admin_permissions.t
@@ -1,7 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
-
use FixMyStreet::TestMech;
my $mech = FixMyStreet::TestMech->new;
diff --git a/t/app/controller/alert.t b/t/app/controller/alert.t
index cb5949b8f..3ae71b7c1 100644
--- a/t/app/controller/alert.t
+++ b/t/app/controller/alert.t
@@ -1,6 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
use LWP::Protocol::PSGI;
use FixMyStreet::TestMech;
diff --git a/t/app/controller/alert_new.t b/t/app/controller/alert_new.t
index ea38f7c25..f7d35f9a0 100644
--- a/t/app/controller/alert_new.t
+++ b/t/app/controller/alert_new.t
@@ -1,7 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
-
use FixMyStreet::TestMech;
use FixMyStreet::App;
diff --git a/t/app/controller/around.t b/t/app/controller/around.t
index c8aca04aa..fbb4e76cd 100644
--- a/t/app/controller/around.t
+++ b/t/app/controller/around.t
@@ -1,7 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
-
use FixMyStreet::TestMech;
my $mech = FixMyStreet::TestMech->new;
diff --git a/t/app/controller/auth.t b/t/app/controller/auth.t
index 3a11cfc4a..d1e313df2 100644
--- a/t/app/controller/auth.t
+++ b/t/app/controller/auth.t
@@ -1,7 +1,3 @@
-use strict;
-use warnings;
-
-use Test::More;
use Test::MockModule;
use FixMyStreet::TestMech;
diff --git a/t/app/controller/auth_social.t b/t/app/controller/auth_social.t
index 09fdf22d3..7a82fc813 100644
--- a/t/app/controller/auth_social.t
+++ b/t/app/controller/auth_social.t
@@ -1,6 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
use Test::MockModule;
use LWP::Protocol::PSGI;
use LWP::Simple;
diff --git a/t/app/controller/contact.t b/t/app/controller/contact.t
index 7c2769b9c..d98d81868 100644
--- a/t/app/controller/contact.t
+++ b/t/app/controller/contact.t
@@ -1,7 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
-
use FixMyStreet::TestMech;
my $mech = FixMyStreet::TestMech->new;
diff --git a/t/app/controller/dashboard.t b/t/app/controller/dashboard.t
index c83902c48..9713d2d2c 100644
--- a/t/app/controller/dashboard.t
+++ b/t/app/controller/dashboard.t
@@ -1,6 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
use Test::MockTime ':all';
use FixMyStreet::TestMech;
diff --git a/t/app/controller/index.t b/t/app/controller/index.t
index 6b28a03d2..91d0a8fcb 100644
--- a/t/app/controller/index.t
+++ b/t/app/controller/index.t
@@ -1,7 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
-
use FixMyStreet::TestMech;
my $mech = FixMyStreet::TestMech->new;
diff --git a/t/app/controller/json.t b/t/app/controller/json.t
index b2cea674f..f7410dbd0 100644
--- a/t/app/controller/json.t
+++ b/t/app/controller/json.t
@@ -1,8 +1,3 @@
-use strict;
-use warnings;
-
-use Test::More;
-
use FixMyStreet::TestMech;
my $mech = FixMyStreet::TestMech->new;
diff --git a/t/app/controller/moderate.t b/t/app/controller/moderate.t
index 10287ab22..a4a7f3cb6 100644
--- a/t/app/controller/moderate.t
+++ b/t/app/controller/moderate.t
@@ -1,8 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
-use utf8;
-
use FixMyStreet::TestMech;
use FixMyStreet::App;
use Data::Dumper;
diff --git a/t/app/controller/my.t b/t/app/controller/my.t
index 00070ed81..8803e7877 100644
--- a/t/app/controller/my.t
+++ b/t/app/controller/my.t
@@ -1,8 +1,3 @@
-use strict;
-use warnings;
-
-use Test::More;
-
use FixMyStreet::TestMech;
my $mech = FixMyStreet::TestMech->new;
diff --git a/t/app/controller/my_planned.t b/t/app/controller/my_planned.t
index 79ed0e72c..79d9e9e72 100644
--- a/t/app/controller/my_planned.t
+++ b/t/app/controller/my_planned.t
@@ -1,8 +1,3 @@
-use strict;
-use warnings;
-
-use Test::More;
-
use FixMyStreet::TestMech;
my $mech = FixMyStreet::TestMech->new;
diff --git a/t/app/controller/open311.t b/t/app/controller/open311.t
index 9b0a6f8af..29cd38129 100644
--- a/t/app/controller/open311.t
+++ b/t/app/controller/open311.t
@@ -1,8 +1,3 @@
-use strict;
-use warnings;
-
-use Test::More;
-
use FixMyStreet::TestMech;
my $mech = FixMyStreet::TestMech->new;
diff --git a/t/app/controller/photo.t b/t/app/controller/photo.t
index ad857b5e3..dbbc697d7 100644
--- a/t/app/controller/photo.t
+++ b/t/app/controller/photo.t
@@ -1,10 +1,3 @@
-use strict;
-use utf8; # sign in error message has – in it
-use warnings;
-use feature 'say';
-use Test::More;
-use utf8;
-
use FixMyStreet::TestMech;
use FixMyStreet::App;
use Web::Scraper;
diff --git a/t/app/controller/questionnaire.t b/t/app/controller/questionnaire.t
index f42908a3e..b046cec9b 100644
--- a/t/app/controller/questionnaire.t
+++ b/t/app/controller/questionnaire.t
@@ -1,6 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
use DateTime;
use FixMyStreet::TestMech;
diff --git a/t/app/controller/report_as_other.t b/t/app/controller/report_as_other.t
index 551a59481..96c6df239 100644
--- a/t/app/controller/report_as_other.t
+++ b/t/app/controller/report_as_other.t
@@ -1,7 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
-
use FixMyStreet::TestMech;
use FixMyStreet::App;
diff --git a/t/app/controller/report_display.t b/t/app/controller/report_display.t
index b35a4a026..81b0ffb86 100644
--- a/t/app/controller/report_display.t
+++ b/t/app/controller/report_display.t
@@ -1,7 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
-
use FixMyStreet::TestMech;
use Web::Scraper;
use Path::Class;
diff --git a/t/app/controller/report_import.t b/t/app/controller/report_import.t
index b956b61ae..25875b38a 100644
--- a/t/app/controller/report_import.t
+++ b/t/app/controller/report_import.t
@@ -1,7 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
-
use FixMyStreet::TestMech;
use FixMyStreet::App;
use Web::Scraper;
diff --git a/t/app/controller/report_inspect.t b/t/app/controller/report_inspect.t
index e1723b0cd..8b375bfe4 100644
--- a/t/app/controller/report_inspect.t
+++ b/t/app/controller/report_inspect.t
@@ -1,7 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
-
use FixMyStreet::TestMech;
my $mech = FixMyStreet::TestMech->new;
diff --git a/t/app/controller/report_interest_count.t b/t/app/controller/report_interest_count.t
index 3cb80ea5f..bd9660dea 100644
--- a/t/app/controller/report_interest_count.t
+++ b/t/app/controller/report_interest_count.t
@@ -1,6 +1,3 @@
-use strict;
-use warnings;
-
package FixMyStreet::Cobrand::Tester;
use parent 'FixMyStreet::Cobrand::Default';
@@ -11,8 +8,6 @@ sub can_support_problems {
package main;
-use Test::More;
-
use FixMyStreet::TestMech;
use Web::Scraper;
use Path::Class;
diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t
index 33324d210..36400ae81 100644
--- a/t/app/controller/report_new.t
+++ b/t/app/controller/report_new.t
@@ -1,8 +1,3 @@
-use strict;
-use utf8; # sign in error message has – in it
-use warnings;
-use Test::More;
-
use FixMyStreet::TestMech;
use FixMyStreet::App;
use Web::Scraper;
diff --git a/t/app/controller/report_new_mobile.t b/t/app/controller/report_new_mobile.t
index 3dfb99b2f..7f71a2786 100644
--- a/t/app/controller/report_new_mobile.t
+++ b/t/app/controller/report_new_mobile.t
@@ -1,4 +1,3 @@
-use Test::More;
use FixMyStreet::TestMech;
use LWP::Protocol::PSGI;
use t::Mock::MapItZurich;
diff --git a/t/app/controller/report_new_open311.t b/t/app/controller/report_new_open311.t
index e3a464f88..4c3fefc56 100644
--- a/t/app/controller/report_new_open311.t
+++ b/t/app/controller/report_new_open311.t
@@ -1,7 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
-
use FixMyStreet::TestMech;
use FixMyStreet::App;
use Web::Scraper;
diff --git a/t/app/controller/report_updates.t b/t/app/controller/report_updates.t
index a1e26476f..941989f24 100644
--- a/t/app/controller/report_updates.t
+++ b/t/app/controller/report_updates.t
@@ -1,7 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
-
use FixMyStreet::TestMech;
use Web::Scraper;
use Path::Class;
diff --git a/t/app/controller/reports.t b/t/app/controller/reports.t
index 56b4cce8c..8e226de8c 100644
--- a/t/app/controller/reports.t
+++ b/t/app/controller/reports.t
@@ -1,6 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
use FixMyStreet::TestMech;
use mySociety::MaPit;
use FixMyStreet::App;
diff --git a/t/app/controller/rss.t b/t/app/controller/rss.t
index bec504760..2258c9f5b 100644
--- a/t/app/controller/rss.t
+++ b/t/app/controller/rss.t
@@ -1,7 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
-
use FixMyStreet::TestMech;
use FixMyStreet::App;
diff --git a/t/app/controller/token.t b/t/app/controller/token.t
index ac88f4f7a..858838865 100644
--- a/t/app/controller/token.t
+++ b/t/app/controller/token.t
@@ -1,8 +1,3 @@
-use strict;
-use warnings;
-use Test::More;
-use utf8;
-
use FixMyStreet::TestMech;
use FixMyStreet::App;