aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/01app.t
diff options
context:
space:
mode:
Diffstat (limited to 't/app/01app.t')
-rw-r--r--t/app/01app.t19
1 files changed, 18 insertions, 1 deletions
diff --git a/t/app/01app.t b/t/app/01app.t
index 02ffcd217..eb98b6319 100644
--- a/t/app/01app.t
+++ b/t/app/01app.t
@@ -1,10 +1,27 @@
#!/usr/bin/env perl
+
use strict;
use warnings;
-use Test::More;
+package FixMyStreet::Cobrand::Tester;
+use parent 'FixMyStreet::Cobrand::FiksGataMi';
+sub front_stats_data { { new => 0, fixed => 0, updates => 12345 } }
+
+package main;
+
+use Test::More;
use Catalyst::Test 'FixMyStreet::App';
+use charnames ':full';
+use Encode qw(encode);
ok( request('/')->is_success, 'Request should succeed' );
+FixMyStreet::override_config {
+ ALLOWED_COBRANDS => [ 'tester' ],
+}, sub {
+ my $page = get('/');
+ my $num = encode('UTF-8', "12\N{NO-BREAK SPACE}345");
+ like $page, qr/$num/;
+};
+
done_testing();