diff options
Diffstat (limited to 't')
-rw-r--r-- | t/app/01app.t | 6 | ||||
-rw-r--r-- | t/cobrand/form_extras.t | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/t/app/01app.t b/t/app/01app.t index 596e0de47..7b933973b 100644 --- a/t/app/01app.t +++ b/t/app/01app.t @@ -2,6 +2,7 @@ use strict; use warnings; +use utf8; package FixMyStreet::Cobrand::Tester; use parent 'FixMyStreet::Cobrand::FixaMinGata'; @@ -9,6 +10,7 @@ sub front_stats_data { { new => 0, fixed => 0, updates => 12345 } } package main; +use Encode; use Test::More; use Catalyst::Test 'FixMyStreet::App'; use charnames ':full'; @@ -19,8 +21,8 @@ SKIP: { FixMyStreet::override_config { ALLOWED_COBRANDS => [ 'tester' ], }, sub { - my $page = get('/'); - my $num = "12 345"; + my $page = decode_utf8(get('/')); + my $num = "12( | )345"; like $page, qr/$num/; }; } diff --git a/t/cobrand/form_extras.t b/t/cobrand/form_extras.t index df76ccbe1..3807dd56a 100644 --- a/t/cobrand/form_extras.t +++ b/t/cobrand/form_extras.t @@ -84,7 +84,7 @@ FixMyStreet::override_config { ); $mech->content_contains('Now check your email'); - my $problem = FixMyStreet::DB->resultset('Problem')->search({}, { order_by => '-id' })->first; + my $problem = FixMyStreet::DB->resultset('Problem')->search({}, { order_by => { -desc => 'id' } })->first; is $problem->get_extra_metadata('address'), 'My address', 'Address is stored'; is $problem->get_extra_metadata('passport'), 'P123456', 'Passport number is stored'; }; |