[Bast-commits] r6939 - DBIx-Class/0.08/trunk/t/count
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Thu Jul 2 11:16:46 GMT 2009
Author: ribasushi
Date: 2009-07-02 11:16:46 +0000 (Thu, 02 Jul 2009)
New Revision: 6939
Modified:
DBIx-Class/0.08/trunk/t/count/joined.t
Log:
These tests are in prefetch/count.t
Modified: DBIx-Class/0.08/trunk/t/count/joined.t
===================================================================
--- DBIx-Class/0.08/trunk/t/count/joined.t 2009-07-02 11:07:22 UTC (rev 6938)
+++ DBIx-Class/0.08/trunk/t/count/joined.t 2009-07-02 11:16:46 UTC (rev 6939)
@@ -7,7 +7,7 @@
use DBICTest;
-plan tests => 9;
+plan tests => 7;
my $schema = DBICTest->init_schema();
@@ -35,12 +35,3 @@
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);
-
More information about the Bast-commits
mailing list