aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/TestMech.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-07-02 16:36:35 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-07-02 16:36:35 +0100
commit6e3ea5f3fbc56919dd183276bfb84b1deef9c21c (patch)
treecbf63e1977ea545e2f2fa625f9a3444af3b4273a /perllib/FixMyStreet/TestMech.pm
parent3b45695dddd4aa35e7b04a2a10b8e7732217e155 (diff)
parentdadddc42f5e5c4b3a02db9171a485885b1e365a7 (diff)
Merge branch 'use-the-body-id'
Diffstat (limited to 'perllib/FixMyStreet/TestMech.pm')
-rw-r--r--perllib/FixMyStreet/TestMech.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/TestMech.pm b/perllib/FixMyStreet/TestMech.pm
index c5b72a7cf..e7fc573c0 100644
--- a/perllib/FixMyStreet/TestMech.pm
+++ b/perllib/FixMyStreet/TestMech.pm
@@ -10,6 +10,7 @@ sub import {
Test::More->export_to_level(1);
}
+use Encode;
use Test::WWW::Mechanize::Catalyst 'FixMyStreet::App';
use t::Mock::MapIt;
use Test::More;
@@ -743,4 +744,10 @@ sub create_comment_for_problem {
FixMyStreet::App->model('DB::Comment')->create($params);
}
+
+sub encoded_content {
+ my $self = shift;
+ return encode_utf8($self->content);
+}
+
1;