From: Peter Rabbitson Date: Thu, 2 Jul 2009 11:16:46 +0000 (+0000) Subject: These tests are in prefetch/count.t X-Git-Tag: v0.08108~25 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b9ecae395ab4301302e08c544dc3f5c16ac370b9;p=dbsrgits%2FDBIx-Class.git These tests are in prefetch/count.t --- diff --git a/t/count/joined.t b/t/count/joined.t index 85aff3e..352eef9 100644 --- a/t/count/joined.t +++ b/t/count/joined.t @@ -7,7 +7,7 @@ use lib qw(t/lib); use DBICTest; -plan tests => 9; +plan tests => 7; my $schema = DBICTest->init_schema(); @@ -35,12 +35,3 @@ is(scalar($artist->related_resultset('cds')->all()), 0, "No CDs fetched for a sh my $artist_rs = $schema->resultset('Artist')->search({artistid => $artist->id}); is($artist_rs->related_resultset('cds')->count(), 0, "No CDs counted for a shiny new artist using a resultset search"); is(scalar($artist_rs->related_resultset('cds')->all), 0, "No CDs fetched for a shiny new artist using a resultset search"); - -$artist->cds->create({}); -is($artist->related_resultset('cds')->count(), 1); -is(scalar($artist->related_resultset('cds')->all()), 1); - -$artist_rs = $schema->resultset('Artist')->search({artistid => $artist->id}); -is($artist_rs->related_resultset('cds')->count(), 1); -is(scalar($artist_rs->related_resultset('cds')->all), 1); -