diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-07-02 14:20:42 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-07-02 14:20:42 +0100 |
commit | 510af28e0bcda19b4f2bf181aaebc05975a7533f (patch) | |
tree | d8e6791fc62c9bb905794a9f24db0aa0b055de78 /t/cobrand/form_extras.t | |
parent | 3dd1d1f2cb68b731d23ecea9eb580fe08a190ce8 (diff) | |
parent | 0fee017e4a3d3aac6653f2892cc0950d354f3f91 (diff) |
Merge branch '1084-quote-names'
Diffstat (limited to 't/cobrand/form_extras.t')
-rw-r--r-- | t/cobrand/form_extras.t | 2 |
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'; }; |