aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2018-03-15 10:57:57 +0000
committerDave Arter <davea@mysociety.org>2018-03-15 11:19:41 +0000
commitd5fed14044a348d85061202265dd09e4ce1b776b (patch)
tree0f15eb42bc554e2beb5448f14c535aeaebc8d342 /t/cobrand
parente1f7ee00b13ca71a2d2197b32dae73d8f703ba6c (diff)
[Zurich] Fix typo causing crash on /report/ajax
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/zurich.t9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t
index f5c6b1145..eccb0c8eb 100644
--- a/t/cobrand/zurich.t
+++ b/t/cobrand/zurich.t
@@ -126,6 +126,15 @@ FixMyStreet::override_config {
$mech->content_contains('&Uuml;berpr&uuml;fung ausstehend')
or die $mech->content;
+FixMyStreet::override_config {
+ ALLOWED_COBRANDS => [ 'zurich' ],
+ MAP_TYPE => 'Zurich,OSM',
+}, sub {
+ my $json = $mech->get_ok_json( '/report/ajax/' . $report->id );
+ is $json->{report}->{title}, "&Uuml;berpr&uuml;fung ausstehend", "correct title";
+ is $json->{report}->{state}, "submitted", "correct state";
+};
+
subtest "Banners are displayed correctly" => sub {
FixMyStreet::override_config {
ALLOWED_COBRANDS => [ 'zurich' ],