aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand/form_extras.t
diff options
context:
space:
mode:
Diffstat (limited to 't/cobrand/form_extras.t')
-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';
};