aboutsummaryrefslogtreecommitdiffstats
path: root/t/open311.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-07-10 14:38:17 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-07-14 18:25:19 +0100
commit67823bc788ce744e1228a8602b9a5aa805771ced (patch)
tree0b1eddd4e071314573e52206d0061cab022e1cd0 /t/open311.t
parenteed6158981240afce10824e82fa86f14b38f3167 (diff)
Centralise update creation to include fields.
Given the user, we can infer the name if not provided, and the extra data if a staff user. We can also provide defaults for various other fields. Always have superuser take precedence over from_body.
Diffstat (limited to 't/open311.t')
-rw-r--r--t/open311.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/open311.t b/t/open311.t
index 9524006b8..941e35f7e 100644
--- a/t/open311.t
+++ b/t/open311.t
@@ -402,6 +402,7 @@ subtest 'Hounslow update description is correct for a different user' => sub {
my $comment = make_comment('hounslow');
$comment->user($user2);
+ $comment->name($user2->name);
my $results;
FixMyStreet::override_config {
ALLOWED_COBRANDS => 'hounslow',