diff options
Diffstat (limited to 't/app')
-rw-r--r-- | t/app/controller/alert.t | 7 | ||||
-rw-r--r-- | t/app/controller/council.t | 9 |
2 files changed, 14 insertions, 2 deletions
diff --git a/t/app/controller/alert.t b/t/app/controller/alert.t index 80037fafe..31b5fb3cf 100644 --- a/t/app/controller/alert.t +++ b/t/app/controller/alert.t @@ -20,11 +20,14 @@ $mech->title_like(qr/^Local RSS feeds and email alerts/); $mech->content_contains('Local RSS feeds and email alerts'); $mech->content_contains('html lang="en-gb"'); -$mech->get_ok('/alert/list?pc=ZZ99ZY'); +$mech->get_ok('/alert/list?pc=EH99 1SP'); $mech->title_like(qr/^Local RSS feeds and email alerts/); -$mech->content_contains('Local RSS feeds and email alerts for ZZ9 9ZY'); +$mech->content_contains('Local RSS feeds and email alerts for EH99 1SP'); $mech->content_contains('html lang="en-gb"'); $mech->get_ok('/alert/list?pc=High Street'); $mech->content_contains('We found more than one match for that location'); + +$mech->get_ok('/alert/list?pc='); +$mech->content_contains('hat location does not appear to be covered by a council'); done_testing(); diff --git a/t/app/controller/council.t b/t/app/controller/council.t new file mode 100644 index 000000000..d01b3ccd7 --- /dev/null +++ b/t/app/controller/council.t @@ -0,0 +1,9 @@ +use strict; +use warnings; +use Test::More; + + +use Catalyst::Test 'FixMyStreet::App'; +use FixMyStreet::App::Controller::Council; + +done_testing(); |