X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F90join_torture.t;h=6eeda5a709aac248af6f4777134314ad9a5b8cc6;hb=539ffe8768e85b2061aa3bb3616da4f848a582f3;hp=494237fc09b3bb5ed620dc226d73273dc1ae7570;hpb=a48831c9598d7603c1990e759e89a933783d1d60;p=dbsrgits%2FDBIx-Class.git diff --git a/t/90join_torture.t b/t/90join_torture.t index 494237f..6eeda5a 100644 --- a/t/90join_torture.t +++ b/t/90join_torture.t @@ -46,23 +46,9 @@ cmp_ok(scalar @cds, '==', 1, "condition based on inherited join okay"); my $rs3 = $rs2->search_related('cds'); -# $rs3 selects * from cds_2, with the following join map -# -# artist -> cds_2 -# | -# V -# cds -> cd_to_producer -> producer -# | -# |\--> tags -# V -# tracks -# -# For some reason it is expected to return an exploded set of rows instead of the -# logical 3, even for a rowobject retrieval - why? -# -cmp_ok(scalar($rs3->all), '==', 45, "All cds for artist returned"); - -cmp_ok($rs3->count, '==', 3, "All cds for artist returned via count"); +cmp_ok(scalar($rs3->all), '==', 15, "All cds for artist returned"); + +cmp_ok($rs3->count, '==', 15, "All cds for artist returned via count"); my $rs4 = $schema->resultset("CD")->search({ 'artist.artistid' => '1' }, { join => ['tracks', 'artist'], prefetch => 'artist' }); my @rs4_results = $rs4->all;