X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frelationship%2Fcore.t;fp=t%2Frelationship%2Fcore.t;h=23d829debccdc8b08507563ec065dda6c782f50b;hb=fb88ca2c952ef2e17f6e8a414079f12f71761ff7;hp=af63a5955bb2f06e6d7e6bacee06d73d49d55dc7;hpb=1759f82f9191bd4ec6ad743d066082242ddbce39;p=dbsrgits%2FDBIx-Class.git diff --git a/t/relationship/core.t b/t/relationship/core.t index af63a59..23d829d 100644 --- a/t/relationship/core.t +++ b/t/relationship/core.t @@ -155,7 +155,7 @@ throws_ok { # many_to_many helper tests $cd = $schema->resultset("CD")->find(1); -my @producers = $cd->producers(); +my @producers = $cd->producers(undef, { order_by => 'producerid'} ); is( $producers[0]->name, 'Matt S Trout', 'many_to_many ok' ); is( $cd->producers_sorted->next->name, 'Bob The Builder', 'sorted many_to_many ok' );