X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fprefetch%2Frestricted_children_set.t;h=5ad56bf8bbae8d0d262bbd8842be2c7f5d4242d0;hb=c0329273268971824784f239f32c7246e68da9c5;hp=959c87d4f589c660588ce214ff21fcbe89152ca1;hpb=574dd7c9e960fd2fa6ad083454776adf3cd967e9;p=dbsrgits%2FDBIx-Class.git diff --git a/t/prefetch/restricted_children_set.t b/t/prefetch/restricted_children_set.t index 959c87d..5ad56bf 100644 --- a/t/prefetch/restricted_children_set.t +++ b/t/prefetch/restricted_children_set.t @@ -1,8 +1,10 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } + use strict; use warnings; use Test::More; -use lib qw(t/lib); + use DBICTest; my $schema = DBICTest->init_schema(); @@ -19,7 +21,7 @@ my $cds_rs = $schema->resultset('CD')->search( }, ], { - order_by => 'me.cdid', + order_by => [qw(me.cdid cds.title)], prefetch => { artist => 'cds' }, result_class => 'DBIx::Class::ResultClass::HashRefInflator', },