X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fprefetch%2Fwith_limit.t;h=1dd0829ef8683f82eaafd3de5da5ffa5324f3540;hb=1a789a7270a3d1e0fe3129960aafe8ba389d035e;hp=08df104b0a1d7f47021a50ca06b416d00cccad9e;hpb=a3683eae9d504a28c72307801753dbf7a6df3c15;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/prefetch/with_limit.t b/t/prefetch/with_limit.t index 08df104..1dd0829 100644 --- a/t/prefetch/with_limit.t +++ b/t/prefetch/with_limit.t @@ -14,19 +14,18 @@ my $schema = DBICTest->init_schema(); my $no_prefetch = $schema->resultset('Artist')->search( - undef, - { rows => 3 } -); - -my $use_prefetch = $schema->resultset('Artist')->search( [ # search deliberately contrived { 'artwork.cd_id' => undef }, { 'tracks.title' => { '!=' => 'blah-blah-1234568' }} ], + { rows => 3, join => { cds => [qw/artwork tracks/] }, + } +); + +my $use_prefetch = $no_prefetch->search( + {}, { prefetch => 'cds', - join => { cds => [qw/artwork tracks/] }, - rows => 3, order_by => { -desc => 'name' }, } );