X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F65multipk.t;h=31c0d41c85eac1d63a62c07e65a167fb7f7989f3;hb=293cb2f1de2a488aa6062036deac8a562e8e16c6;hp=084bb8eb8431bfc5921bf196dc49401f2f81c3fe;hpb=5d1d81d6f69aa466b3be77c221edd347db8b642f;p=dbsrgits%2FDBIx-Class.git diff --git a/t/65multipk.t b/t/65multipk.t index 084bb8e..31c0d41 100644 --- a/t/65multipk.t +++ b/t/65multipk.t @@ -1,15 +1,17 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } + use strict; -use warnings; +use warnings; use Test::More; -use lib qw(t/lib); + use DBICTest; my $schema = DBICTest->init_schema(); plan tests => 5; -my $artist = DBICTest::Artist->find(1); +my $artist = $schema->resultset("Artist")->find(1); ok($artist->find_related('twokeys', {cd => 1}), "find multiple pks using relationships + args"); ok($schema->resultset("FourKeys")->search({ foo => 1, bar => 2 })->find({ hello => 3, goodbye => 4 }), "search on partial key followed by a find");