X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F104view.t;h=a3668b2b40c05409397c43c9308acbb15c18e842;hb=8aae794001ecccdb26c2bbd1b92c97bba9e65d79;hp=e7eb46af9343ed9806d106f91d1e11695c897133;hpb=f549392f2e93fec75fa5190363d0a465dd5a8f55;p=dbsrgits%2FDBIx-Class.git diff --git a/t/104view.t b/t/104view.t index e7eb46a..a3668b2 100644 --- a/t/104view.t +++ b/t/104view.t @@ -1,9 +1,10 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } + use strict; use warnings; use Test::More; -use Test::Exception; -use lib qw(t/lib); + use DBICTest; my $schema = DBICTest->init_schema(); @@ -30,6 +31,7 @@ is_deeply ( { result_class => 'DBIx::Class::ResultClass::HashRefInflator', prefetch => ['artist', { tracks => [qw/cd year1999cd year2000cd/] } ], + order_by => 'tracks.trackid', }, )->all ], @@ -40,6 +42,7 @@ is_deeply ( result_class => 'DBIx::Class::ResultClass::HashRefInflator', prefetch => ['artist', { tracks => [qw/cd year1999cd year2000cd/] } ], columns => [qw/cdid single_track title/], # to match the columns retrieved by the virtview + order_by => 'tracks.trackid', }, )->all ],