X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcustom_methods.t;h=e46614377ea0759c4762dbaf17240d38eafbcb2f;hb=d1d2fc5e020933e4a6334dd61619fe53a903c054;hp=7c8c64ad42d2e762d436427f924fa25d945784d1;hpb=2aec43ca974c71c659b443142275dafec2c64d7e;p=dbsrgits%2FDBIx-Class-ResultSet-WithMetaData.git diff --git a/t/custom_methods.t b/t/custom_methods.t index 7c8c64a..e466143 100644 --- a/t/custom_methods.t +++ b/t/custom_methods.t @@ -9,7 +9,7 @@ use Data::Dumper; ok(my $schema = DBICTest->init_schema(), 'got schema'); { - my $artist_rs = $schema->resultset('Artist')->order_by(col => 'artistid')->display(); + my $artist_rs = $schema->resultset('Artist')->search({}, { order_by => 'artistid' })->display(); is_deeply($artist_rs, [ { 'artistid' => '1', @@ -27,7 +27,7 @@ ok(my $schema = DBICTest->init_schema(), 'got schema'); } { - my $artists = $schema->resultset('Artist')->order_by(col => 'artistid')->with_substr->display(); + my $artists = $schema->resultset('Artist')->search({}, { order_by => 'artistid' })->with_substr->display(); is_deeply($artists, [ { 'artistid' => '1', @@ -48,7 +48,7 @@ ok(my $schema = DBICTest->init_schema(), 'got schema'); } { - my $artists = $schema->resultset('Artist')->order_by(col => 'artistid')->with_substr->search({}, { prefetch => 'cds', rows => 1 })->display(); + my $artists = $schema->resultset('Artist')->search({}, { order_by => 'artistid' })->with_substr->search({}, { prefetch => 'cds', rows => 1 })->display(); is_deeply($artists, [ { 'artistid' => 1,