X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcount%2Fin_subquery.t;h=765815d9fd46b13b668bf5ef881b37757fb77cc2;hb=d3a2e424976a449718ad750b72d4bf3acf689caf;hp=e4356404a8a5c283ad306861fd86efb1fc143568;hpb=bfa46eb523fff8ece9b37a48d17b90510f1c8c52;p=dbsrgits%2FDBIx-Class.git diff --git a/t/count/in_subquery.t b/t/count/in_subquery.t index e435640..765815d 100644 --- a/t/count/in_subquery.t +++ b/t/count/in_subquery.t @@ -1,15 +1,12 @@ -#!/usr/bin/perl +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } use strict; use warnings; use Test::More; -plan ( tests => 1 ); -use lib qw(t/lib); use DBICTest; -use DBIC::SqlMakerTest; my $schema = DBICTest->init_schema(); @@ -22,3 +19,5 @@ my $schema = DBICTest->init_schema(); my $subsel_rs = $schema->resultset("CD")->search( { cdid => { IN => $squery } } ); is($subsel_rs->count, $rs->count, 'Subselect on PK got the same row count'); } + +done_testing;