Move helperrels/26sqlt.t, and all t/run/*.tl scripts, to t/*.t
[dbsrgits/DBIx-Class.git] / t / 65multipk.t
1 use strict;
2 use warnings;  
3
4 use Test::More;
5 use lib qw(t/lib);
6 use DBICTest;
7
8 my $schema = DBICTest::init_schema();
9
10 plan tests => 4;
11
12 my $artist = DBICTest::Artist->find(1);
13 ok($artist->find_related('twokeys', {cd => 1}), "find multiple pks using relationships + args");
14 ok($schema->resultset("FourKeys")->find(1,2,3,4), "find multiple pks without hash");
15 ok($schema->resultset("FourKeys")->find(5,4,3,6), "find multiple pks without hash");
16 is($schema->resultset("FourKeys")->find(1,2,3,4)->ID, 'DBICTest::FourKeys|fourkeys|bar=2|foo=1|goodbye=4|hello=3', 'unique object id ok for multiple pks');
17