aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand/tfl.t
diff options
context:
space:
mode:
Diffstat (limited to 't/cobrand/tfl.t')
-rw-r--r--t/cobrand/tfl.t13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/cobrand/tfl.t b/t/cobrand/tfl.t
index 287a8c98e..9624a6aae 100644
--- a/t/cobrand/tfl.t
+++ b/t/cobrand/tfl.t
@@ -813,6 +813,19 @@ FixMyStreet::override_config {
$staffuser->unset_extra_metadata('2fa_secret');
$staffuser->update;
};
+
+ subtest "check not responsible as correct text" => sub {
+ my ($p) = $mech->create_problems_for_body(1, $body->id, 'NotResp');
+ my $c = FixMyStreet::DB->resultset('Comment')->create({
+ problem => $p, user => $p->user, anonymous => 't', text => 'Update text',
+ problem_state => 'not responsible', state => 'confirmed', mark_fixed => 0,
+ confirmed => DateTime->now(),
+ });
+ $mech->get_ok('/report/' . $p->id);
+ $mech->content_contains("not TfL’s responsibility", "not reponsible message contains correct text");
+ $p->comments->delete;
+ $p->delete;
+ };
};
FixMyStreet::override_config {