aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-06-26 11:25:36 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-06-26 13:03:06 +0100
commit09c7f9d765e2a58c3e74eee0ed03612d19ee7f9f (patch)
tree378822f700570d4b3a0de9bd4cb1aede659c1bf2 /t/cobrand
parent62b19194a099e6e5ac1140aea0ed42744cdff786 (diff)
Turn on quote_names.
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/form_extras.t2
1 files changed, 1 insertions, 1 deletions
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';
};