aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-07-03 19:00:10 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-09-30 12:44:56 +0100
commit347e5b812a122f68d011ab460d6a32906afc5d4e (patch)
treeee2aff616ef02eb5188ffae831a354eb32bfd1b3 /t/cobrand
parent0344a2d41021f72f121e31590cbc76b9a85ecb75 (diff)
[Zurich] Include administrative district in admin.
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/zurich.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t
index a27f313f6..a08eb431e 100644
--- a/t/cobrand/zurich.t
+++ b/t/cobrand/zurich.t
@@ -6,6 +6,7 @@ use Email::MIME;
use File::Temp;
use LWP::Protocol::PSGI;
use Test::LongString;
+use Test::MockModule;
use Path::Tiny;
use t::Mock::MapItZurich;
use FixMyStreet::Script::Reports;
@@ -530,7 +531,13 @@ subtest 'Test publishing of final update by DM' => sub {
# Quick RSS check here, while we have a report
$mech->get_ok('/rss/problems');
+ my $module = Test::MockModule->new('FixMyStreet::Geocode::Zurich');
+ $module->mock(admin_district => sub { 'Admin district' });
+
$mech->get_ok( '/admin/report_edit/' . $report->id );
+
+ $mech->content_contains('Admin district');
+
$mech->content_lacks( 'Unbest&auml;tigt' ); # Confirmed email
$mech->submit_form_ok( { with_fields => { status_update => 'FINAL UPDATE' } } );
$mech->form_with_fields( 'status_update' );